Skip to content

Commit

Permalink
Merge pull request #15955 from primefaces/issue-15869
Browse files Browse the repository at this point in the history
Fixed #15869 - CascadeSelect | clicking a few times causes the compon…
  • Loading branch information
cetincakiroglu authored Jul 11, 2024
2 parents a024e9b + 86da162 commit 23daf27
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/app/components/overlay/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,13 +514,18 @@ export class Overlay implements AfterContentInit, OnDestroy {

switch (event.toState) {
case 'visible':
this.show(container, true);
if (this.visible) {
this.show(container, true);
}
this.bindListeners();

break;

case 'void':
this.hide(container, true);
if (!this.visible) {
this.hide(container, true);
}

this.unbindListeners();

DomHandler.appendOverlay(this.overlayEl, this.targetEl, this.appendTo);
Expand Down

0 comments on commit 23daf27

Please sign in to comment.