vue-confirm-dialog icon indicating copy to clipboard operation
vue-confirm-dialog copied to clipboard

Allow click on overlay to exit without running callback assuming false

Open adamtarmstrong opened this issue 4 years ago • 4 comments

Is your feature request related to a problem? Please describe. I would like to use this component more as a 2 option dialog (rather than a yes/no). Currently, if you click on the overlay then it behaves as "false" and runs the callback w/ false.

Describe the solution you'd like I'd like clicking on the overlay to simply close the entire component without actually making a "no" selection.

Describe alternatives you've considered The simplest solution would be to remove the callback on line 103, inside the method handleClickOverlay(). Or a more dynamic solution would be to allow you to define a separate onCancelCallback() to be used at init.

Additional context Thanks for considering this. Making this change would allow for backwards compatibility while providing a huge improvement in a small area.

adamtarmstrong avatar Jul 23 '20 12:07 adamtarmstrong

Thanks. I am working on this bug.

aslanon avatar Aug 25 '20 17:08 aslanon

Any update on this?

aviramha avatar Nov 05 '20 14:11 aviramha

Any update?

yourcharlie23 avatar Feb 03 '21 07:02 yourcharlie23

any updates ?

lamanhdai avatar Mar 14 '22 08:03 lamanhdai