Skip to content

Commit

Permalink
Editor: RichText: Check for presence of inputType (#13986)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth authored and noisysocks committed Feb 21, 2019
1 parent bfe46d6 commit 3175ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ export class RichText extends Component {
return;
}

if ( event ) {
if ( event && event.nativeEvent.inputType ) {
const { inputType } = event.nativeEvent;

// The browser formatted something or tried to insert HTML.
Expand Down

0 comments on commit 3175ef8

Please sign in to comment.