Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 7460452

Browse files
authored
fix(chips-combobox): arrow function parsing for Marko 4 (#2436)
1 parent 1c09d20 commit 7460452

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.changeset/bright-rabbits-guess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ebay/ebayui-core": patch
3+
---
4+
5+
Fix arrow function for Marko 4

src/components/ebay-chips-combobox/component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,8 @@ export default class Combobox extends Marko.Component<Input, State> {
6969
selected: this.state.selected,
7070
} satisfies ChipsComboboxEvent);
7171
}
72+
73+
getDropdownEl() {
74+
return () => this.getEl("root") as HTMLElement;
75+
}
7276
}

src/components/ebay-chips-combobox/index.marko

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $ const {
4242
onExpand("emit", "expand")
4343
onCollapse("emit", "collapse")
4444
disabled=disabled
45-
dropdown-element=() => component.getEl("root")
45+
dropdown-element=component.getDropdownEl()
4646
...comboboxInput
4747
autocomplete="list"
4848
>

0 commit comments

Comments
 (0)