* @param {DOMElement} node input/textarea to focus
(node)
| 18017 | * @param {DOMElement} node input/textarea to focus |
| 18018 | */ |
| 18019 | function focusNode(node) { |
| 18020 | // IE8 can throw "Can't move focus to the control because it is invisible, |
| 18021 | // not enabled, or of a type that does not accept the focus." for all kinds of |
| 18022 | // reasons that are too expensive and fragile to test. |
| 18023 | try { |
| 18024 | node.focus(); |
| 18025 | } catch (e) {} |
| 18026 | } |
| 18027 | |
| 18028 | module.exports = focusNode; |
| 18029 | },{}],138:[function(_dereq_,module,exports){ |