common: update micromodal

This commit is contained in:
David Sevilla Martin 2020-03-28 11:58:15 -04:00
parent 99b5b5ff00
commit 458045ad33
No known key found for this signature in database
GPG Key ID: F764F1417E16B15F
2 changed files with 2 additions and 1 deletions

View File

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

View File

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