diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index bca353b25d5cc5..82af0c7d117893 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -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 diff --git a/packages/editor/src/components/navigable-toolbar/index.js b/packages/editor/src/components/navigable-toolbar/index.js index 9183e7b7d19785..b4fbbf7f3f241f 100644 --- a/packages/editor/src/components/navigable-toolbar/index.js +++ b/packages/editor/src/components/navigable-toolbar/index.js @@ -1,7 +1,7 @@ /** * External dependencies */ -import { cond, matchesProperty } from 'lodash'; +import { cond, matchesProperty, omit } from 'lodash'; /** * WordPress dependencies @@ -75,7 +75,9 @@ class NavigableToolbar extends Component { role="toolbar" ref={ this.toolbar } onKeyDown={ this.switchOnKeyDown } - { ...props } + { ...omit( props, [ + 'focusOnMount', + ] ) } >