Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason committed Aug 23, 2016
1 parent 83a6c57 commit c777142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/Dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ export default class Dropdown extends Component {
let searchWidth
if (newQuery) {
const sizer = findDOMNode(this.refs.sizer)
sizer.textContent = newQuery
sizer.style.display = 'inline'
searchWidth = Math.ceil(sizer.getBoundingClientRect().width)
sizer.style.removeProperty('display')
Expand Down Expand Up @@ -734,9 +735,8 @@ export default class Dropdown extends Component {

renderSearchSizer = () => {
const { search } = this.props
const { searchQuery } = this.state

return !search ? null : <span className='sizer' ref='sizer'>{searchQuery}</span>
return !search ? null : <span className='sizer' ref='sizer' />
}

renderLabels = () => {
Expand Down

0 comments on commit c777142

Please sign in to comment.