Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #69 from umidbekkarimov/fix-68
Browse files Browse the repository at this point in the history
Invalid positioning of Popover element with `openOnFocus=true`
  • Loading branch information
leMaik authored Jan 8, 2017
2 parents 283e25e + 4d6c3c0 commit 3790113
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ChipInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ class ChipInput extends React.Component {
if (this.autoComplete) {
this.getInputNode().focus();
if (this.props.openOnFocus) {
this.autoComplete.setState({ open: true })
this.autoComplete.setState({
open: true,
anchorEl: this.getInputNode(),
})

this.autoComplete.forceUpdate()
}
}
Expand Down

0 comments on commit 3790113

Please sign in to comment.