mirror of
https://github.com/flarum/framework.git
synced 2025-02-28 01:20:12 +08:00
Reduce modal hide timeout (#2367)
This commit is contained in:
parent
84ce740489
commit
c843f4273c
@ -35,7 +35,8 @@ export default class Modal extends Component {
|
|||||||
this.attrs.animateHide();
|
this.attrs.animateHide();
|
||||||
// Here, we ensure that the animation has time to complete.
|
// Here, we ensure that the animation has time to complete.
|
||||||
// See https://mithril.js.org/lifecycle-methods.html#onbeforeremove
|
// See https://mithril.js.org/lifecycle-methods.html#onbeforeremove
|
||||||
return new Promise((resolve) => setTimeout(resolve, 1000));
|
// Bootstrap's Modal.TRANSITION_DURATION is 300 ms.
|
||||||
|
return new Promise((resolve) => setTimeout(resolve, 300));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user