diff --git a/src/AutoComplete/AutoComplete.js b/src/AutoComplete/AutoComplete.js index 3582649..af095b7 100644 --- a/src/AutoComplete/AutoComplete.js +++ b/src/AutoComplete/AutoComplete.js @@ -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 @@ -92,8 +90,6 @@ export default class AutoComplete extends Component { return }) - console.log('children', items); - const empty = !children.length const item = items.find(item => item[valueIndex] === value) @@ -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, diff --git a/src/Dropdown/Dropdown.js b/src/Dropdown/Dropdown.js index 59aa111..a472264 100644 --- a/src/Dropdown/Dropdown.js +++ b/src/Dropdown/Dropdown.js @@ -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' @@ -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, @@ -51,7 +49,6 @@ export default class Dropdown extends Component { align: 'tl tl', closeOnEsc: true, closeOnOutsideClick: true, - fade: true, offset: '0 0', } @@ -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)