Skip to content

Commit

Permalink
Fix onLongPress prop in toolbar button (#28059)
Browse files Browse the repository at this point in the history
  • Loading branch information
dratwas committed Jan 11, 2021
1 parent b5e0e42 commit 822fcad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function ToolbarButtonWithOptions( { options } ) {
title={ firstOption.title }
icon={ <Icon icon={ firstOption.icon } /> }
onClick={ firstOption.onClick }
onLongPress={ enablePicker && presentPicker }
onLongPress={ enablePicker ? presentPicker : undefined }
/>
</ToolbarGroup>
{ enablePicker && (
Expand Down

0 comments on commit 822fcad

Please sign in to comment.