Skip to content

Commit

Permalink
chore: testing something
Browse files Browse the repository at this point in the history
  • Loading branch information
rubencarvalho committed Dec 11, 2024
1 parent 5b674b4 commit 92e7623
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions packages/overlay/src/OverlayTrigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,23 +113,25 @@ export class OverlayTrigger extends SpectrumElement {
private handleSlotContent(
event: Event & { target: HTMLSlotElement }
): void {
switch (event.target.name) {
case 'click-content':
this.clickContent = this.getAssignedElementsFromSlot(
event.target
);
break;
case 'longpress-content':
this.longpressContent = this.getAssignedElementsFromSlot(
event.target
);
break;
case 'hover-content':
this.hoverContent = this.getAssignedElementsFromSlot(
event.target
);
break;
}
requestAnimationFrame(() => {
switch (event.target.name) {
case 'click-content':
this.clickContent = this.getAssignedElementsFromSlot(
event.target
);
break;
case 'longpress-content':
this.longpressContent = this.getAssignedElementsFromSlot(
event.target
);
break;
case 'hover-content':
this.hoverContent = this.getAssignedElementsFromSlot(
event.target
);
break;
}
});
}

private handleBeforetoggle(event: BeforetoggleOpenEvent): void {
Expand Down

0 comments on commit 92e7623

Please sign in to comment.