Skip to content

Commit

Permalink
Fix: Grammar typo on packages/dataviews/src/search-widget.js. (#60588)
Browse files Browse the repository at this point in the history
Co-authored-by: jorgefilipecosta <[email protected]>
  • Loading branch information
jorgefilipecosta and jorgefilipecosta authored Apr 9, 2024
1 parent a05b605 commit 49babf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dataviews/src/search-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function ListBox( { view, filter, onChangeView } ) {
const compositeStore = useCompositeStore( {
virtualFocus: true,
focusLoop: true,
// When we have no or just one operators, we can set the first item as active.
// When we have no or just one operator, we can set the first item as active.
// We do that by passing `undefined` to `defaultActiveId`. Otherwise, we set it to `null`,
// so the first item is not selected, since the focus is on the operators control.
defaultActiveId: filter.operators?.length === 1 ? undefined : null,
Expand Down

0 comments on commit 49babf2

Please sign in to comment.