Open kripod opened 6 months ago
I believe this is working as expected. We need to choose a default value for this option, and we're doing so for the topmost provider. Soon, you will be able to render ComboboxProvider
within SelectProvider
, allowing the Select default options to take precedence.
Current behavior
When nesting a
SelectProvider
within aComboboxProvider
, the latter’s defaultincludesBaseElement={true}
appears to take precedence over the former component’s implicitfalse
value.Steps to reproduce the bug
Combobox
search input is a stop, preventing immediate keyboard navigation from the top item to the bottom one and vice versaExpected behavior
The
Combobox
within aSelectPopover
shouldn’t be an arrow key stop by default.Workaround
Pass
includesBaseElement={false}
to either<ComboboxProvider>
or<SelectProvider>
explicitly when using aSelect
withCombobox
.Possible solutions
I’m not familiar with the internals of Ariakit, but perhaps when a provider’s prop isn’t specified, its value shouldn’t be inherited after resolving to the default, but just passed along as
undefined
.