Skip to content

Commit

Permalink
Editable: Skip focus event prop proxying
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Oct 20, 2017
1 parent b538874 commit b871204
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions blocks/editable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ export default class Editable extends Component {

proxyPropHandler( name ) {
return ( event ) => {
// TODO: Reconcile with `onFocus` instance handler which does not
// pass the event object. Otherwise we have double focus handling
// and editor instance being stored into state.
if ( name === 'Focus' ) {
return;
}

// Allow props an opportunity to handle the event, before default
// Editable behavior takes effect. Should the event be handled by a
// prop, it should `stopImmediatePropagation` on the event to stop
Expand Down

0 comments on commit b871204

Please sign in to comment.