Skip to content

Commit

Permalink
Remove needless condition
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Sep 5, 2023
1 parent 0608f43 commit 862a27e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function UnforwardedModal(
onPointerUp: React.PointerEventHandler< HTMLDivElement >;
} = {
onPointerDown: ( event ) => {
if ( event.isPrimary && event.target === event.currentTarget ) {
if ( event.target === event.currentTarget ) {
pressTarget = event.target;
// Avoids focus changing so that focus return works as expected.
event.preventDefault();
Expand Down

0 comments on commit 862a27e

Please sign in to comment.