diff --git a/framework/core/js/src/common/components/Modal.js b/framework/core/js/src/common/components/Modal.js index 23338ee34..96e6cd9d9 100644 --- a/framework/core/js/src/common/components/Modal.js +++ b/framework/core/js/src/common/components/Modal.js @@ -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)); } }