twigs
twigs copied to clipboard
Dialogs Manager for Open and Alert variant need a control over modal close
Describe the bug When we are using dialogs.open, assume that confirmButtonProps onClick is a async func. Dialogs should not close until API call is done but currently its closing dialog onClick itself.
To Reproduce Steps to reproduce the behaviour:
- Use dialogs function open variant or alert variant
- Pass Async function to confirmButtonProps onClick
- Click confirm btn, it will close immediately
Expected behaviour Dialog should close only after API call is done