mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 00:44:12 +08:00
FIX: prevents open to happen too early (#26649)
In discourse-assign the assign menu in the modal is using this `expandedOnInsert` option and was sometimes not opening correctly resulting in a broken state until you click two times on it. This should prevent this issue.
This commit is contained in:
parent
99391277d4
commit
8fbdce36a4
|
@ -198,7 +198,9 @@ export default Component.extend(
|
||||||
this.appEvents.on("keyboard-visibility-change", this, this._updatePopper);
|
this.appEvents.on("keyboard-visibility-change", this, this._updatePopper);
|
||||||
|
|
||||||
if (this.selectKit.options.expandedOnInsert) {
|
if (this.selectKit.options.expandedOnInsert) {
|
||||||
|
next(() => {
|
||||||
this._open();
|
this._open();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user