Remove comments
parent
774c3b9e2a
commit
4d29cf009f
|
@ -8,12 +8,6 @@ import {
|
||||||
DROPDOWN_MENU_ITEM_THRESHOLD,
|
DROPDOWN_MENU_ITEM_THRESHOLD,
|
||||||
} from 'shared/constants/index'
|
} from 'shared/constants/index'
|
||||||
|
|
||||||
// State for index of highlighted item
|
|
||||||
// If there are filtered items, set highlighted item index to 0, otherwise set to null
|
|
||||||
// Arrow keys will increment or decrement the highlighted item index (without going out of bounds)
|
|
||||||
// Hitting enter will pass the highlighted item to this.props.onChoose
|
|
||||||
// Hitting escape will reset highlightedItemIndex to null
|
|
||||||
|
|
||||||
class Dropdown extends Component {
|
class Dropdown extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props)
|
super(props)
|
||||||
|
|
Loading…
Reference in New Issue