From f62ea11c6bd4c32d4cf559fda4007c75716a3c5e Mon Sep 17 00:00:00 2001 From: RaoHai Date: Tue, 17 Jan 2017 13:03:10 +0800 Subject: [PATCH] Fix issue that onFocus will trigger twice + close https://github.com/ant-design/ant-design/issues/4576 --- src/Select.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Select.jsx b/src/Select.jsx index 801d3a40e..4a4f2568d 100644 --- a/src/Select.jsx +++ b/src/Select.jsx @@ -339,7 +339,10 @@ const Select = React.createClass({ } }, - onOuterFocus() { + onOuterFocus(e) { + if (e.target === this.getInputDOMNode()) { + return; + } this.clearBlurTime(); this._focused = true; this.updateFocusClassName();