Skip to content

Commit

Permalink
Remove unnecessary blur/focus handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Sep 6, 2018
1 parent 5bbe3d9 commit 48b8fd5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions packages/editor/src/components/block-mover/drag-handle.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import classnames from 'classnames';
*/
import { Draggable } from '@wordpress/components';

export const IconDragHandle = ( { isVisible, className, icon, onFocus, onBlur, onDragStart, onDragEnd, blockElementId, order, rootClientId, clientId, layout } ) => {
export const IconDragHandle = ( { isVisible, className, icon, onDragStart, onDragEnd, blockElementId, order, rootClientId, clientId, layout } ) => {
if ( ! isVisible ) {
return null;
}
Expand All @@ -33,8 +33,6 @@ export const IconDragHandle = ( { isVisible, className, icon, onFocus, onBlur, o
<div
className={ dragHandleClassNames }
aria-hidden="true"
onFocus={ onFocus }
onBlur={ onBlur }
onDragStart={ onDraggableStart }
onDragEnd={ onDraggableEnd }
draggable
Expand Down
2 changes: 0 additions & 2 deletions packages/editor/src/components/block-mover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ export class BlockMover extends Component {
<IconDragHandle
className="editor-block-mover__control"
icon={ dragHandle }
onFocus={ this.onFocus }
onBlur={ this.onBlur }
blockElementId={ blockElementId }
order={ order }
rootClientId={ rootClientId }
Expand Down

0 comments on commit 48b8fd5

Please sign in to comment.