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:
Joffrey JAFFEUX 2024-04-16 13:58:06 +02:00 committed by GitHub
parent 99391277d4
commit 8fbdce36a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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();
});
}
},