mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-29 01:38:18 +03:00
Fix bug bypassing verification in confirmation modal when pressing Enter (#6889)
# Description Fix bug bypassing verification in the confirmation modal when pressing Enter # Demo Tested for webhook case (similar to other cases): 1. Press Enter when invalid verification => not delete webhook 2. Press Enter when valid verification => delete webhook https://github.com/user-attachments/assets/81aa0aaa-7361-4584-b7ae-b29525f33664 # Ref Fixes #6663
This commit is contained in:
parent
dbcbe754dd
commit
7a282b4363
@ -93,7 +93,7 @@ export const ConfirmationModal = ({
|
||||
setIsOpen(false);
|
||||
}
|
||||
}}
|
||||
onEnter={onConfirmClick}
|
||||
onEnter={!isValidValue ? undefined : onConfirmClick}
|
||||
isClosable={true}
|
||||
padding="large"
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user