Skip to content

Commit

Permalink
Stop propagating to DOM elements the focusOnMount prop from `Naviga…
Browse files Browse the repository at this point in the history
…bleToolbar` components (#11804)
  • Loading branch information
mmtr authored Nov 15, 2018
1 parent d970375 commit 0604cd0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/editor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 7.0.2 (Unreleased)

### Bug Fixes

- Stop propagating to DOM elements the `focusOnMount` prop from `NavigableToolbar` components

## 7.0.1 (2018-11-12)

### Polish
Expand Down
6 changes: 4 additions & 2 deletions packages/editor/src/components/navigable-toolbar/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { cond, matchesProperty } from 'lodash';
import { cond, matchesProperty, omit } from 'lodash';

/**
* WordPress dependencies
Expand Down Expand Up @@ -75,7 +75,9 @@ class NavigableToolbar extends Component {
role="toolbar"
ref={ this.toolbar }
onKeyDown={ this.switchOnKeyDown }
{ ...props }
{ ...omit( props, [
'focusOnMount',
] ) }
>
<KeyboardShortcuts
bindGlobal
Expand Down

0 comments on commit 0604cd0

Please sign in to comment.