mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #1063 from appwrite/fix-mfa-submit
Fix value not updating when autoSubmit is false
This commit is contained in:
@@ -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