Skip to content

Commit

Permalink
Adds custom target for OverlayPanel primefaces#942
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland Steinegger committed Jul 20, 2021
1 parent 8d412cf commit 95c7739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/overlaypanel/OverlayPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ export default {
else
this.show(event);
},
show(event) {
show(event: Event, target?: any) {
this.visible = true;
this.target = event.currentTarget;
this.target = target || event.currentTarget;
},
hide() {
this.visible = false;
Expand Down

0 comments on commit 95c7739

Please sign in to comment.