radix-vue icon indicating copy to clipboard operation
radix-vue copied to clipboard

[Feature]: Combobox highlight (?) event

Open SuddenDev opened this issue 11 months ago • 2 comments

Describe the feature

First of all: Thank you guys for your hard work! The library is absolutely amazing!

To my feature reuqest though: Currently it's not possible (as far as i can tell) to receive an event if or what ComboboxItem is highlighted. You can of course use mouseover, but then it still does not work with hotkeys. In my case, i'd like to (pre)fetch some data based on the current selection, but without the need to actually select the item (for previews for example).

I've looked into the code and I think most of what's needed is already present. I think we'd just need to expose the event and/or the highlighted selection. If you guys need help I could try and submit a PR.

Thanks a million already!

Additional information

  • [ ] I intend to submit a PR for this feature.
  • [ ] I have already implemented and/or tested this feature.

SuddenDev avatar Mar 09 '24 22:03 SuddenDev

It will first be introduced in #766, then be made available in 2.0 😁

zernonia avatar Apr 10 '24 14:04 zernonia

When will 2.0 be released? Really need this feature. Is there an existing branch I can use? Or do I have to fork it and write my own if I need it now?

HuakunShen avatar Jun 08 '24 21:06 HuakunShen