Skip to content

Commit

Permalink
focus input
Browse files Browse the repository at this point in the history
  • Loading branch information
ebsi-bblake committed Apr 19, 2023
1 parent 5b5e2f0 commit 1b6fb5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
- name: Setup PNPM
# uses: pnpm/action-setup@35ab4267a1a21c8e8cb1c087cf1642e891ff57bd
uses: pnpm/[email protected]
- run: pnpm install --prefer-frozen-lockfile
- run: pnpm install --frozen-lockfile
- run: pnpm run lint
- run: pnpm run build
1 change: 1 addition & 0 deletions content/2-templating/5-dom-ref/mithril/InputFocused.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default function InputFocused() {
return {
view: () =>
m("input", {
oncreate: ({ dom }) => dom.focus(),
type: "text",
value,
oninput: (e) => (value = e.target.value),
Expand Down

0 comments on commit 1b6fb5c

Please sign in to comment.