File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 9
9
getjQuery ,
10
10
reflow ,
11
11
TRANSITION_END ,
12
+ emulateTransitionEnd ,
13
+ getTransitionDurationFromElement ,
12
14
typeCheckConfig
13
15
} from './util/index'
14
16
import Data from './dom/data'
@@ -146,7 +148,10 @@ class Sidebar {
146
148
}
147
149
}
148
150
151
+ const transitionDuration = getTransitionDurationFromElement ( this . _element )
152
+
149
153
EventHandler . one ( this . _element , TRANSITION_END , complete )
154
+ emulateTransitionEnd ( this . _element , transitionDuration )
150
155
}
151
156
152
157
close ( breakpoint ) {
@@ -175,7 +180,10 @@ class Sidebar {
175
180
}
176
181
}
177
182
183
+ const transitionDuration = getTransitionDurationFromElement ( this . _element )
184
+
178
185
EventHandler . one ( this . _element , TRANSITION_END , complete )
186
+ emulateTransitionEnd ( this . _element , transitionDuration )
179
187
}
180
188
181
189
toggle ( breakpoint ) {
You can’t perform that action at this time.
0 commit comments