Currently the activeItem for
It would be nice as a dev to have this functionality out of the box without having to write extra code to handle keeping track of the active item every time I use this component.
Adding a "defaultActiveItemToSelectedItem" or some other prop to enable this feature could also work.
This shows the activeItem defaulting to the first in the list.
https://codesandbox.io/s/blueprint-sandbox-lir2r?fontsize=14
Sounds like a good enhancement, accepting PRs
I'll try to put something together this week. Is it OK to make this the default behavior of the component? Or add a prop to enable? Personally I think this functionality should be the default.
@skurger I would prefer to enable it by default
Just want to say thanks for taking care of this!
Which reminds me this should make its way to the
Most helpful comment
Just want to say thanks for taking care of this!