Skip to content

Commit

Permalink
fix(AutoComplete): Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
HriBB committed Oct 26, 2016
1 parent 57db88c commit f5da585
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
5 changes: 0 additions & 5 deletions src/AutoComplete/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ export default class AutoComplete extends Component {
} = this.props
const { focused, value: stateValue } = this.state

console.log('items', items);

const filtered = stateValue
? items.filter(i => i[dataIndex].match(stateValue, 'gi'))
: items
Expand All @@ -92,8 +90,6 @@ export default class AutoComplete extends Component {
return <Option key={value} value={value}>{data}</Option>
})

console.log('children', items);

const empty = !children.length

const item = items.find(item => item[valueIndex] === value)
Expand All @@ -120,7 +116,6 @@ export default class AutoComplete extends Component {
}

const mainClass = classnames({
'mdl-autocomplete': true,
'mdl-autocomplete': true,
'mdl-autocomplete--disabled': disabled,
'mdl-autocomplete--empty': empty,
Expand Down
5 changes: 1 addition & 4 deletions src/Dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { findDOMNode } from 'react-dom'
import classnames from 'classnames'
import Portal from 'react-portal'
import Tether from 'tether'
import Popper from 'popper.js'

import './Dropdown.scss'

Expand Down Expand Up @@ -39,7 +38,6 @@ export default class Dropdown extends Component {
className: PropTypes.string,
closeOnEsc: PropTypes.bool,
closeOnOutsideClick: PropTypes.bool,
fade: PropTypes.bool,
offset: PropTypes.string,
target: PropTypes.element.isRequired,
targetNode: PropTypes.any,
Expand All @@ -51,7 +49,6 @@ export default class Dropdown extends Component {
align: 'tl tl',
closeOnEsc: true,
closeOnOutsideClick: true,
fade: true,
offset: '0 0',
}

Expand All @@ -67,7 +64,7 @@ export default class Dropdown extends Component {
}

onOpen(portal) {
const { align, fade, offset, useTargetWidth, useTargetMinHeight } = this.props
const { align, offset, useTargetWidth, useTargetMinHeight } = this.props

// get position
const [ay,ax,ty,tx] = align.split('').map(a => a && POS[a]).filter(a => a)
Expand Down

0 comments on commit f5da585

Please sign in to comment.