mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 21:11:55 +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