Summary
Vue's normalizeEvents() drops valid hover-only and focus-only configurations.
Root cause
packages/vue/src/useAskable.ts compares configured.indexOf(event) with the event's index in DEFAULT_EVENTS. For ['hover'] or ['focus'], the configured index is 0 while the default indexes are 1 and 2, so normalization returns an empty event list.
Proposed fix
Match the safe React/Solid implementation:
const configured = events ?? DEFAULT_EVENTS;
return DEFAULT_EVENTS.filter((event) => configured.includes(event));
Acceptance criteria
Summary
Vue's
normalizeEvents()drops valid hover-only and focus-only configurations.Root cause
packages/vue/src/useAskable.tscomparesconfigured.indexOf(event)with the event's index inDEFAULT_EVENTS. For['hover']or['focus'], the configured index is0while the default indexes are1and2, so normalization returns an empty event list.Proposed fix
Match the safe React/Solid implementation:
Acceptance criteria
events: ['hover']responds to hoverevents: ['focus']responds to focus