diff --git a/src/core/ReactInputSelection.js b/src/core/ReactInputSelection.js index f680717277..b1d9abfd22 100644 --- a/src/core/ReactInputSelection.js +++ b/src/core/ReactInputSelection.js @@ -20,17 +20,9 @@ var ReactDOMSelection = require('ReactDOMSelection'); +var getActiveElement = require('getActiveElement'); var nodeContains = require('nodeContains'); -// It is not safe to read the document.activeElement property in IE if there's -// nothing focused. -function getActiveElement() { - try { - return document.activeElement; - } catch (e) { - } -} - function isInDocument(node) { return nodeContains(document.documentElement, node); }