Skip to content

Commit

Permalink
fix: use declarative open proeprty on popups
Browse files Browse the repository at this point in the history
  • Loading branch information
dobrinyonkov committed May 8, 2024
1 parent 6884266 commit 306c4d5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/main/src/ComboBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,11 +548,18 @@ class ComboBox extends UI5Element {
}

async openValueStatePopover() {
(await this._getValueStatePopover())?.showAt(this);
const popover = await this._getValueStatePopover();
if (popover) {
popover.opener = this;
popover.open = true;
}
}

async closeValueStatePopover() {
(await this._getValueStatePopover())?.close();
const popover = await this._getValueStatePopover();
if (popover) {
popover.open = false;
}
}

async _getValueStatePopover() {
Expand Down

0 comments on commit 306c4d5

Please sign in to comment.