Skip to content

onActive on mouseover doesn't work with vue renderer #1300

@jenky

Description

@jenky

Description

onActive doesn't fire with the Vue renderer, and items do not get highlighted on hover because aria-selected is always false.

Reproduction

Follow the document at https://www.algolia.com/doc/ui-libraries/autocomplete/integrations/using-vue/ and replace the renderer option

renderer: { createElement: h, Fragment, render }

Then, search and hover your mouse cursor over any items.

Reproduce link: https://stackblitz.com/edit/vitejs-vite-bbjrfwxy?file=src%2FApp.vue

Note

  • Upon removing the renderer option, everything works as expected.
  • Keyboard navigation still works as the item still get highlighted and onActive also get called.

Expected behavior

  • onActive should be called.
  • aria-selected state should updated accordingly.

Environment

  • OS: macOS 15.1.1 (24B91)
  • Browser: Chrome Version 131.0.6778.265
  • Autocomplete version: 1.17.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions