Skip to content

Commit

Permalink
chore: refactor - unify function names for base and dialog dropdown #…
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok committed May 10, 2023
1 parent 027f2ae commit 07c6678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const
// HACK: Push clears args so run it after useEffect sets them due to model.value change.
if (trigger) setTimeout(() => wave.push(), 0)
},
onSelectAll = (checked = true) => () => {
selectAll = (checked = true) => () => {
if (!selection) return
if (checked) selection.clear()

Expand Down Expand Up @@ -158,7 +158,7 @@ const
isMultivalued &&
<div>
<Fluent.Text variant='small'>
<Fluent.Link disabled={disabled} onClick={onSelectAll()}>Select All</Fluent.Link> | <Fluent.Link disabled={disabled} onClick={onSelectAll(false)}>Deselect All</Fluent.Link>
<Fluent.Link disabled={disabled} onClick={selectAll()}>Select All</Fluent.Link> | <Fluent.Link disabled={disabled} onClick={selectAll(false)}>Deselect All</Fluent.Link>
</Fluent.Text>
</div>
}
Expand Down

0 comments on commit 07c6678

Please sign in to comment.