Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make closing options configurable for "Modal" #291

Merged
merged 1 commit into from Aug 31, 2017
Merged

Make closing options configurable for "Modal" #291

merged 1 commit into from Aug 31, 2017

Conversation

jwahdatehagh
Copy link
Contributor

Hi @rafaelpimpa - first of all thanks for this amazing library - we totally love it!

This PR enables passing passing an Array like ['escape', 'x', 'outside'] as the canCancel prop without changing it's original API. Passing a Boolean still works as expected.

Now you can e.g. prevent closing the modal by clicking on the background overlay but still enable closing it via escape or clicking on the X: :canCancel="['escape', 'x']".

@rafaberaldo
Copy link
Member

I like that, thanks a lot!

@rafaberaldo rafaberaldo merged commit 19ae5a8 into buefy:dev Aug 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants