mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 20:03:39 +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);
|
||||
|
||||
if (this.selectKit.options.expandedOnInsert) {
|
||||
this._open();
|
||||
next(() => {
|
||||
this._open();
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user