Skip to content

Commit bf5aa0d

Browse files
committed
close the dropdown whenever we click on any option in the massaction dropdown
1 parent 336112a commit bf5aa0d

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

app/code/Magento/Ui/view/base/web/js/grid/massactions.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ define([
2626
noItemsMsg: $t('You haven\'t selected any items!'),
2727
modules: {
2828
selections: '${ $.selectProvider }'
29-
},
30-
actionClicked: false
29+
}
3130
},
3231

3332
/**
@@ -62,24 +61,13 @@ define([
6261
}
6362

6463
action = this.getAction(actionIndex);
65-
66-
if (action.actionClicked && !action.timeoutExpired) {
67-
return this;
68-
}
6964
callback = this._getCallback(action, data);
7065

7166
action.confirm ?
7267
this._confirm(action, callback) :
7368
callback();
7469

75-
this.actions().forEach(function (item) {
76-
item.actionClicked = (item.type === actionIndex);
77-
});
78-
79-
action.timeoutExpired = false;
80-
setTimeout(function () {
81-
action.timeoutExpired = true;
82-
}, 3000);
70+
this.close();
8371

8472
return this;
8573
},

0 commit comments

Comments
 (0)