Skip to content

Commit

Permalink
Fix reset on blur
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Jul 15, 2022
1 parent 7aedf1f commit 3d8d486
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/components/src/focal-point-picker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ export default function FocalPointPicker( {
className="components-focal-point-picker"
onKeyDown={ arrowKeyStep }
onMouseDown={ startDrag }
onBlur={ endDrag }
onBlur={ () => {
if ( isDragging ) endDrag();
} }
ref={ dragAreaRef }
role="button"
tabIndex="-1"
Expand Down

0 comments on commit 3d8d486

Please sign in to comment.