mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Merge pull request #1063 from appwrite/fix-mfa-submit
Fix value not updating when autoSubmit is false
This commit is contained in:
1 file changed
+1
-4
@@ -22,12 +22,9 @@
|
||||
placeholder: '',
|
||||
defaultValue: value.split(''),
|
||||
onValueChange: ({ next }) => {
|
||||
if (!autoSubmit) {
|
||||
return next;
|
||||
}
|
||||
value = next.join('');
|
||||
|
||||
if (value.length === length && !autoSubmitted) {
|
||||
if (autoSubmit && value.length === length && !autoSubmitted) {
|
||||
autoSubmitted = true;
|
||||
const firstInputElement = element.querySelector('input');
|
||||
firstInputElement?.form.requestSubmit();
|
||||
|
||||
Reference in new issue
Block a user