git.wincent.com
/
hextrapolate.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ac5ba3
)
Remove unnecessary calls to ReactDOM.findDOMNode
author
Greg Hurrell <greg@hurrell.net>
Thu, 1 Jun 2017 14:10:48 +0000
(07:10 -0700)
committer
Greg Hurrell <greg@hurrell.net>
Thu, 1 Jun 2017 14:10:48 +0000
(07:10 -0700)
src/Field.react.js
patch
|
blob
|
history
diff --git
a/src/Field.react.js
b/src/Field.react.js
index 4b1fa4a7b5c6ac49228daba36b60dbef3d726fed..c2922445ec0728a4af4b4e8fb6bce3312b48d961 100644
(file)
--- a/
src/Field.react.js
+++ b/
src/Field.react.js
@@
-8,7
+8,6
@@
import DIGITS from './DIGITS';
import PropTypes from 'prop-types';
import React from 'react';
-import ReactDOM from 'react-dom';
import convert from './convert';
import cx from 'classnames';
@@
-83,7
+82,7
@@
export default class Field extends React.Component {
}
_onCopy = () => {
-
ReactDOM.findDOMNode(this._input)
.select();
+
this._input
.select();
// May throw a SecurityError.
try {
@@
-120,7
+119,7
@@
export default class Field extends React.Component {
}
focus() {
-
ReactDOM.findDOMNode(this._input)
.focus();
+
this._input
.focus();
}
render() {