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
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:
Expected behaviour Dialog should close only after API call is done