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.
2 parents b926da3 + 018c9b7 commit ac2aa42Copy full SHA for ac2aa42
src/lib/elements/forms/inputDigits.svelte
@@ -22,12 +22,9 @@
22
placeholder: '',
23
defaultValue: value.split(''),
24
onValueChange: ({ next }) => {
25
- if (!autoSubmit) {
26
- return next;
27
- }
28
value = next.join('');
29
30
- if (value.length === length && !autoSubmitted) {
+ if (autoSubmit && value.length === length && !autoSubmitted) {
31
autoSubmitted = true;
32
const firstInputElement = element.querySelector('input');
33
firstInputElement?.form.requestSubmit();
0 commit comments