From b9ace6a5b66ae7f2311f56ec6468e24035d9789b Mon Sep 17 00:00:00 2001 From: Jason Rudolph Date: Mon, 7 Aug 2017 12:31:04 -0400 Subject: [PATCH] :art: --- src/text-editor-component.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/text-editor-component.js b/src/text-editor-component.js index a910e1828..3417fc929 100644 --- a/src/text-editor-component.js +++ b/src/text-editor-component.js @@ -70,6 +70,7 @@ class TextEditorComponent { this.updateSync = this.updateSync.bind(this) this.didBlurHiddenInput = this.didBlurHiddenInput.bind(this) this.didFocusHiddenInput = this.didFocusHiddenInput.bind(this) + this.didPaste = this.didPaste.bind(this) this.didTextInput = this.didTextInput.bind(this) this.didKeydown = this.didKeydown.bind(this) this.didKeyup = this.didKeyup.bind(this) @@ -1553,7 +1554,7 @@ class TextEditorComponent { didPaste (event) { // TODO Explain the motivation for this logic - if ((this.props.platform || process.platform) === 'linux') event.preventDefault() + if (this.getPlatform() === 'linux') event.preventDefault() } didTextInput (event) {