1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 16:07:34 +02:00

common: update micromodal

This commit is contained in:
David Sevilla Martin
2020-03-28 11:58:15 -04:00
parent 99b5b5ff00
commit 458045ad33
2 changed files with 2 additions and 1 deletions

View File

@@ -11,7 +11,7 @@
"jump.js": "^1.0.2", "jump.js": "^1.0.2",
"lodash": "^4.17.15", "lodash": "^4.17.15",
"m.attrs.bidi": "github:tobscure/m.attrs.bidi", "m.attrs.bidi": "github:tobscure/m.attrs.bidi",
"micromodal": "^0.4.2", "micromodal": "^0.4.6",
"mithril": "^2.0.4", "mithril": "^2.0.4",
"mousetrap": "^1.6.5", "mousetrap": "^1.6.5",
"punycode": "^2.1.1", "punycode": "^2.1.1",

View File

@@ -59,6 +59,7 @@ export default class ModalManager extends Component {
MicroModal.show('Modal', { MicroModal.show('Modal', {
awaitCloseAnimation: true, awaitCloseAnimation: true,
awaitOpenAnimation: true, awaitOpenAnimation: true,
disableFocus: true,
onShow: () => $('body').addClass('modal-open'), onShow: () => $('body').addClass('modal-open'),
onClose: () => { onClose: () => {
$('body').removeClass('modal-open'); $('body').removeClass('modal-open');