twigs icon indicating copy to clipboard operation
twigs copied to clipboard

Dialogs Manager for Open and Alert variant need a control over modal close

Open shettyMegh9 opened this issue 7 months ago • 0 comments

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:

  1. Use dialogs function open variant or alert variant
  2. Pass Async function to confirmButtonProps onClick
  3. Click confirm btn, it will close immediately

Expected behaviour Dialog should close only after API call is done

shettyMegh9 avatar Jul 03 '24 04:07 shettyMegh9