From f05ab547f4bf80682b0958b03901ab171ccc735f Mon Sep 17 00:00:00 2001 From: Alexander Fedyashov Date: Sat, 13 May 2017 21:55:15 +0300 Subject: [PATCH] fix(Dropdown): fix compatibility with IE (#1667) --- src/modules/Dropdown/Dropdown.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/Dropdown/Dropdown.js b/src/modules/Dropdown/Dropdown.js index 4be135eaa9..b581473014 100644 --- a/src/modules/Dropdown/Dropdown.js +++ b/src/modules/Dropdown/Dropdown.js @@ -686,6 +686,12 @@ export default class Dropdown extends Component { handleBlur = (e) => { debug('handleBlur()') + + // Heads up! Don't remove this. + // https://github.com/Semantic-Org/Semantic-UI-React/issues/1315 + const currentTarget = _.get(e, 'currentTarget') + if (currentTarget && currentTarget.contains(document.activeElement)) return + const { closeOnBlur, multiple, onBlur, selectOnBlur } = this.props // do not "blur" when the mouse is down inside of the Dropdown if (this.isMouseDown) return