From eded0fc188bf0e24b8b3397681aae6b74101de5d Mon Sep 17 00:00:00 2001 From: Greg Hurrell Date: Mon, 3 Aug 2015 16:12:53 -0700 Subject: [PATCH] Drop unnecessary event meddling Was trying to stop unwanted selection behavior. We still get it, even with `user-select: none` and this. So, let's just drop it. --- src/Field.react.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Field.react.js b/src/Field.react.js index a629d30..b5d2010 100644 --- a/src/Field.react.js +++ b/src/Field.react.js @@ -71,9 +71,7 @@ export default class Field extends React.Component { } } - _onCopy = event => { - event.preventDefault(); - event.stopPropagation(); + _onCopy = () => { React.findDOMNode(this._input).select(); // May throw a SecurityError. -- 2.37.1