mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 06:53:47 +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();
|
||||
// Here, we ensure that the animation has time to complete.
|
||||
// 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…
Reference in New Issue
Block a user