Skip to content

Commit

Permalink
Enable action on toolbar as long as action is allowed for on item
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed May 2, 2024
1 parent 511c4a6 commit 628d64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dataviews/src/bulk-actions-toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const SNACKBAR_VARIANTS = {

function ActionTrigger( { action, onClick, items, isBusy } ) {
const isDisabled = useMemo( () => {
return isBusy || items.some( ( item ) => ! action.isEligible( item ) );
return isBusy || items.every( ( item ) => ! action.isEligible( item ) );
}, [ action, items, isBusy ] );
return (
<ToolbarButton
Expand Down

0 comments on commit 628d64e

Please sign in to comment.