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

Close modal with keyboard=true & backdrop=static #29986

Merged
merged 3 commits into from
Jan 10, 2020

Conversation

mendozagioo
Copy link
Contributor

@mendozagioo mendozagioo commented Jan 8, 2020

This avoid the no close of modal with options:

$('#my-modal').modal({
backdrop: 'static',
keyboard: true
})

fix issue: #29978

Preview: https://deploy-preview-29986--twbs-bootstrap.netlify.com/docs/4.3/components/modal/#static-backdrop

Copy link
Member

@Johann-S Johann-S left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR thanks @mendozagioo 👍

Copy link
Member

@MartijnCuppens MartijnCuppens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work fine, thanks!

@XhmikosR
Copy link
Member

Thanks for the patch @mendozagioo!

@Johann-S this will need to be manually backported to my v4-dev-xmr branch when you have some time :)

@XhmikosR
Copy link
Member

@mendozagioo can you please backport this to my v4-dev-xmr branch?

XhmikosR pushed a commit that referenced this pull request Feb 12, 2020
Close modal with keyboard=true & backdrop=static (#29986)

* Close modal with keyboard=true & backdrop=static
mendozagioo added a commit to mendozagioo/bootstrap that referenced this pull request Feb 16, 2020
@mendozagioo
Copy link
Contributor Author

@XhmikosR, I added the appropriate tests

olsza pushed a commit to olsza/bootstrap that referenced this pull request Oct 3, 2020
* Close modal with keyboard=true & backdrop=static
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants