Skip to content

Slow hover performance regardless of list length #1868

@mryellow

Description

@mryellow
  • Vue Version: 2.6.11
  • Vue Select Version: 3.20.4

Describe the bug

As described in #1013 @mouseover makes an assignment to typeAheadPointer.

This is then causing an update. This update is applying to all items within li as it counts as an update associated with that key.

This update causes any rich content sourced from components placed in the option slot to also suffer an update. This can't be overridden with subsequent key bindings as everything is a child of the li being touched.

Steps To Reproduce

  • Install Vue Devtools.
  • Enable "Highlight Updates"
  • Mouseover list items
  • Observe update spam

Expected behavior

  • Should only update contents of option slot when data within option variable actually changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions