Skip to content

Commit

Permalink
Dataviews filter: move resetValueOnSelect prop to combobox item (#64852)
Browse files Browse the repository at this point in the history
Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>
  • Loading branch information
3 people authored Aug 28, 2024
1 parent 8325439 commit d574952
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ function ComboboxList( { view, filter, onChangeView }: SearchWidgetProps ) {
}, [ filter.elements, deferredSearchValue ] );
return (
<Ariakit.ComboboxProvider
resetValueOnSelect={ false }
selectedValue={ currentValue }
setSelectedValue={ ( value ) => {
const newFilters = currentFilter
Expand Down Expand Up @@ -266,6 +265,7 @@ function ComboboxList( { view, filter, onChangeView }: SearchWidgetProps ) {
{ matches.map( ( element ) => {
return (
<Ariakit.ComboboxItem
resetValueOnSelect={ false }
key={ element.value }
value={ element.value }
className="dataviews-filters__search-widget-listitem"
Expand Down

0 comments on commit d574952

Please sign in to comment.