Skip to content

Commit

Permalink
fix(Dropdown): fix compatibility with IE (#1667)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter authored and levithomason committed May 13, 2017
1 parent 8dbb7e5 commit f05ab54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/Dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f05ab54

Please sign in to comment.