Skip to content

Commit 30d980c

Browse files
authored
feat(form): new default true for errorfocus
As proposed in #1745 (comment) this PR changes the default value for errorFocus to true. The new default will always focus the first error field of a form when the form is invalid, which is more logical. By the previous Logic to adjust a form field content, you almost always have to click into that field first. As this is a breaking change it is supposed to be part of 2.9
1 parent 6c7be26 commit 30d980c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/definitions/behaviors/form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ $.fn.form.settings = {
15271527

15281528
autoCheckRequired : false,
15291529
preventLeaving : false,
1530-
errorFocus : false,
1530+
errorFocus : true,
15311531
dateHandling : 'date', // 'date', 'input', 'formatter'
15321532

15331533
onValid : function() {},

0 commit comments

Comments
 (0)