calculate modal transition duration based on modal-dialog element
This commit is contained in:
parent
47ef0a877e
commit
ffc8d507c7
2 changed files with 47 additions and 1 deletions
|
|
@ -260,7 +260,7 @@ class Modal {
|
|||
}
|
||||
|
||||
if (transition) {
|
||||
const transitionDuration = Util.getTransitionDurationFromElement(this._element)
|
||||
const transitionDuration = Util.getTransitionDurationFromElement(this._dialog)
|
||||
|
||||
$(this._dialog)
|
||||
.one(Util.TRANSITION_END, transitionComplete)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue