diff --git a/.changeset/flat-chefs-switch.md b/.changeset/flat-chefs-switch.md new file mode 100644 index 000000000..2b1cc640d --- /dev/null +++ b/.changeset/flat-chefs-switch.md @@ -0,0 +1,5 @@ +--- +"bits-ui": minor +--- + +Forward `pointerenter` events from `Menu` items diff --git a/src/lib/bits/menu/components/menu-checkbox-item.svelte b/src/lib/bits/menu/components/menu-checkbox-item.svelte index 59f649990..aca730f89 100644 --- a/src/lib/bits/menu/components/menu-checkbox-item.svelte +++ b/src/lib/bits/menu/components/menu-checkbox-item.svelte @@ -54,6 +54,7 @@ on:m-pointerdown={dispatch} on:m-pointerleave={dispatch} on:m-pointermove={dispatch} + on:pointerenter > diff --git a/src/lib/bits/menu/components/menu-item.svelte b/src/lib/bits/menu/components/menu-item.svelte index d933d3c27..bdbadcff8 100644 --- a/src/lib/bits/menu/components/menu-item.svelte +++ b/src/lib/bits/menu/components/menu-item.svelte @@ -40,6 +40,7 @@ on:m-pointerdown={dispatch} on:m-pointerleave={dispatch} on:m-pointermove={dispatch} + on:pointerenter > diff --git a/src/lib/bits/menu/components/menu-radio-item.svelte b/src/lib/bits/menu/components/menu-radio-item.svelte index 55cb48f6f..dad403da0 100644 --- a/src/lib/bits/menu/components/menu-radio-item.svelte +++ b/src/lib/bits/menu/components/menu-radio-item.svelte @@ -37,6 +37,7 @@ on:m-pointerdown={dispatch} on:m-pointerleave={dispatch} on:m-pointermove={dispatch} + on:pointerenter > diff --git a/src/lib/bits/menu/components/menu-sub-trigger.svelte b/src/lib/bits/menu/components/menu-sub-trigger.svelte index e1360f7a3..7024db379 100644 --- a/src/lib/bits/menu/components/menu-sub-trigger.svelte +++ b/src/lib/bits/menu/components/menu-sub-trigger.svelte @@ -49,6 +49,7 @@ on:m-keydown={dispatch} on:m-pointerleave={dispatch} on:m-pointermove={dispatch} + on:pointerenter > diff --git a/src/lib/bits/menu/types.ts b/src/lib/bits/menu/types.ts index 8a7e8e895..764677d77 100644 --- a/src/lib/bits/menu/types.ts +++ b/src/lib/bits/menu/types.ts @@ -59,6 +59,7 @@ type ItemEvents = { pointerdown: CustomEventHandler; pointerleave: CustomEventHandler; pointermove: CustomEventHandler; + pointerenter: CustomEventHandler; }; type CheckboxItemEvents = ItemEvents;