You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I admire and applaud this very simple and great library. Thanks to you, I am using it very well.
But there is one problem. If you close and reopen the dialog box while entering the confirmationKeyword, the TextField retains the previously entered value. I don't think this behavior is very helpful to UX.
import{useConfirm}from'material-ui-confirm';// ...constconfirm=useConfirm();confirm({title: 'Check reservation information',content: 'Please check your reservation information again.',confirmationKeyword: 'I have confirmed the contents and agree to the reservation',confirmationKeywordTextFieldProps: {size: 'small',placeholder: 'I have confirmed the contents and agree to the reservation',helperText: 'After confirming your reservation information, please enter the same information as above.',},})
Is there a way to initialize the TextField input each time the Dialog is closed? What am I missing?
The text was updated successfully, but these errors were encountered:
stoicjone
changed the title
Value remains in textField even after Dialog is closed
The input value remains in the TextField even after the dialog is closed.
Feb 6, 2024
First of all, I admire and applaud this very simple and great library. Thanks to you, I am using it very well.
But there is one problem. If you close and reopen the dialog box while entering the
confirmationKeyword
, theTextField
retains the previously entered value. I don't think this behavior is very helpful to UX.Is there a way to initialize the TextField input each time the Dialog is closed? What am I missing?
The text was updated successfully, but these errors were encountered: