Skip to content

Commit

Permalink
Don't do anything in RichTextInputEvent on native mobile (#13929)
Browse files Browse the repository at this point in the history
  • Loading branch information
hypest authored and youknowriad committed Mar 6, 2019
1 parent aa5ec1b commit 7f09d9c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/editor/src/components/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export {
default as RichText,
RichTextShortcut,
RichTextToolbarButton,
RichTextInputEvent,
} from './rich-text';
export { default as MediaPlaceholder } from './media-placeholder';
export { default as BlockFormatControls } from './block-format-controls';
Expand Down
1 change: 1 addition & 0 deletions packages/editor/src/components/rich-text/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,3 +450,4 @@ RichTextContainer.Content.defaultProps = {
export default RichTextContainer;
export { RichTextShortcut } from './shortcut';
export { RichTextToolbarButton } from './toolbar-button';
export { RichTextInputEvent } from './input-event';
10 changes: 10 additions & 0 deletions packages/editor/src/components/rich-text/input-event.native.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* WordPress dependencies
*/
import { Component } from '@wordpress/element';

export class RichTextInputEvent extends Component {
render() {
return null;
}
}

0 comments on commit 7f09d9c

Please sign in to comment.