derlin / semantic-modals

AngularJS ModalService for the semantic-UI framework.
http://derlin.github.io/semantic-modals/
Apache License 2.0
8 stars 1 forks source link

Prevent modal from closing. #6

Open ghost opened 7 years ago

ghost commented 7 years ago

It would be great to have an option that allows a modal from being closed when the positive and negative buttons are clicked. This will be useful when there is a form in the modal and some validations need to run by clicking these buttons. Semantic UI has support for this by returning 'false' from onApprove and onDeny callbacks.