We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
event.composePath()
1 parent e9459c5 commit fbbc405Copy full SHA for fbbc405
packages/multiple-select-vanilla/src/MultipleSelectInstance.ts
@@ -554,10 +554,11 @@ export class MultipleSelectInstance {
554
}
555
556
protected getEventTarget(e: Event & { target: HTMLElement }): HTMLElement {
557
- if (e.composedPath) {
558
- return e.composedPath()[0] as HTMLElement;
+ try {
+ return (e.composedPath?.()[0] || (e as any).path?.[0] || e.target) as HTMLElement;
559
+ } catch {
560
+ return e.target as HTMLElement;
561
- return e.target as HTMLElement;
562
563
564
protected getListRows(): HtmlStruct[] {
0 commit comments