Skip to content

Commit 7ae1070

Browse files
committed
add AutoFocus hook
1 parent 12ed44e commit 7ae1070

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

assets/js/app.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,11 @@ let Focus = {
929929
}
930930
return false;
931931
},
932+
AutoFocus: {
933+
mounted() {
934+
this.el.focus();
935+
},
936+
},
932937
};
933938

934939
let csrfToken = document

0 commit comments

Comments
 (0)