Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 5d2a6ce

Browse files
committed
fix(interim-element): cancel was emitted as list and not as stack
* Cancel called shift which slices the first element in the Array instead of pop who take the last and also happens on `hide` fixes #6912
1 parent db763bc commit 5d2a6ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/services/interimElement/interimElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ function InterimElementProvider() {
360360
*
361361
*/
362362
function cancel(reason, options) {
363-
var interim = stack.shift();
363+
var interim = stack.pop();
364364
if ( !interim ) return $q.when(reason);
365365

366366
interim

0 commit comments

Comments
 (0)