Skip to content

Commit 35ff085

Browse files
Create client.js
1 parent 278637f commit 35ff085

File tree

1 file changed

+4
-0
lines changed
  • Client-Side Components/Client Scripts/ Improve UX by focusing on the first editable field when a form loads.

1 file changed

+4
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
var inputs = document.querySelectorAll('input:not([type=hidden])');
2+
if (inputs.length > 0) {
3+
inputs[0].focus();
4+
}

0 commit comments

Comments
 (0)