aslanon/vue-confirm-dialog

Allow click on overlay to exit without running callback assuming false

adamtarmstrong opened this issue · 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.

Thanks. I am working on this bug.

Any update on this?

Any update?

any updates ?