mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix(elements): allow InputDigits to auto submit again
If a user inputs an incorrect code, deletes what they put, and then enters a different code, the InputDigits component should auto submit again if autoSubmit is true.
This commit is contained in:
1 file changed
+4
@@ -24,6 +24,10 @@
|
||||
onValueChange: ({ next }) => {
|
||||
value = next.join('');
|
||||
|
||||
if (value.length < length) {
|
||||
autoSubmitted = false;
|
||||
}
|
||||
|
||||
if (autoSubmit && value.length === length && !autoSubmitted) {
|
||||
autoSubmitted = true;
|
||||
const firstInputElement = element.querySelector('input');
|
||||
|
||||
Reference in new issue
Block a user