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
I have a custom ui modal with 2 buttons yes/no. But I only want to enable the "yes" button when the user types in a word into an input box in the modal. I have a state variable that switches to true when the word is typed. But the button is not enabling. And I printed out the variable onto the modal as well and that is not changing.
Here is my modal code:
confirmAlert({customUI: ({ onClose })=>{return(<divclassName={'custom-ui-dialog'}><h1>Confirm Complete Shift</h1><divclassName={'body'}><h3>
Are you sure you want to complete the shift?
<br/>
Type COMPLETE below to confirm.
</h3><inputtype={'text'}className={'form-control'}onChange={checkInput}/><br/><divclassName={'buttons'}><buttononClick={onClose}>No</button><buttononClick={switchShifts}disabled={!completedTyped}>
Yes
</button></div>{`completedTyped: ${completedTyped}`}</div></div>);},closeOnEscape: false,closeOnClickOutside: false,});
The text was updated successfully, but these errors were encountered:
I have a custom ui modal with 2 buttons yes/no. But I only want to enable the "yes" button when the user types in a word into an input box in the modal. I have a state variable that switches to true when the word is typed. But the button is not enabling. And I printed out the variable onto the modal as well and that is not changing.
Here is my modal code:
The text was updated successfully, but these errors were encountered: