fix(select): avoid duplicate dialogs and backdrops when clicking (#25175)

Resolves #25126
This commit is contained in:
Sean Perkins
2022-04-25 21:35:41 -04:00
committed by GitHub
parent ff1429ba7a
commit 70d278414e
2 changed files with 32 additions and 1 deletions

View File

@ -188,8 +188,8 @@ export class Select implements ComponentInterface {
if (this.disabled || this.isExpanded) {
return undefined;
}
const overlay = (this.overlay = await this.createOverlay(event));
this.isExpanded = true;
const overlay = (this.overlay = await this.createOverlay(event));
overlay.onDidDismiss().then(() => {
this.overlay = undefined;
this.isExpanded = false;