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

Commit

Permalink
Completely remove commented auto complete code.
Browse files Browse the repository at this point in the history
  • Loading branch information
leMaik committed Sep 7, 2018
1 parent 25dd2a5 commit 8fe877d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/ChipInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ class ChipInput extends React.Component {
*/
focus = () => {
this.actualInput.focus()
// this.getInputNode().focus()
// if (this.props.openOnFocus && !this.props.disabled) {
// }
if (this.state.focusedChip != null) {
this.setState({ focusedChip: null })
}
Expand Down Expand Up @@ -429,14 +426,8 @@ class ChipInput extends React.Component {
} = this.props

const chips = this.props.value || this.state.chips
// const autoCompleteData = dataSourceConfig
// ? (dataSource || []).filter((value) => !chips.some((c) => c[dataSourceConfig.value] === value[dataSourceConfig.value]))
// : (dataSource || []).filter((value) => chips.indexOf(value) < 0)

// const actualFilter = openOnFocus ? (search, key) => (search === '' || filter(search, key)) : filter

const hasInput = (this.props.value || this.state.chips).length > 0 || this.state.inputValue.length > 0
// const showPlaceholder = placeholder && !hasInput
const shrinkFloatingLabel = InputLabelProps.shrink != null
? InputLabelProps.shrink
: (label != null && (hasInput || this.state.isFocused))
Expand Down

0 comments on commit 8fe877d

Please sign in to comment.