We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5daa821 commit bc2068eCopy full SHA for bc2068e
assets/global.js
@@ -72,8 +72,7 @@ function trapFocus(container, elementToFocus = container) {
72
if (elementToFocus.tagName === 'INPUT' &&
73
['search', 'text', 'email', 'url'].includes(elementToFocus.type) &&
74
elementToFocus.value) {
75
- const end = elementToFocus.value.length;
76
- elementToFocus.setSelectionRange(0, end);
+ elementToFocus.setSelectionRange(0, elementToFocus.value.length);
77
}
78
79
0 commit comments