Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control key word for confirm #57

Closed
sabotag opened this issue Sep 19, 2022 · 2 comments · Fixed by #60
Closed

Control key word for confirm #57

sabotag opened this issue Sep 19, 2022 · 2 comments · Fixed by #60

Comments

@sabotag
Copy link

sabotag commented Sep 19, 2022

Is there a way to add an input to the Confirm Dialog to enter a control word?
After entering this word, the button will become active.

Thank you

Screenshot 2022-09-19 at 23 52 51

@jonatanklosko
Copy link
Owner

Hey @sabotag, this is currently not possible, but I'm open to a PR that adds a feature like this :)

@sabotag
Copy link
Author

sabotag commented Sep 21, 2022

@jonatanklosko ooh, it will be great, it will help us a lot =)
thank you

TimMikeladze added a commit to TimMikeladze/material-ui-confirm that referenced this issue Oct 19, 2022
Closes jonatanklosko#57

The following options have been added:

- confirmationKeyword
- confirmationKeywordTextFieldProps
- getConfirmationKeywordPlaceholder

If `confirmationKeyword` is provided a TextField is rendered and the confirmation button is disabled. When the contents of the TextField match the value of `confirmationKeyword` then the confirmation button becomes enabled.

Additional stories and tests have alse been added for this behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants