Fix activeCategory when scroll is above minTop

nolan/hinaloe-test
Etienne Lemay 2017-09-25 21:15:07 -04:00
parent 2f77b6ac40
commit b5552be2c4
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ export default class Picker extends React.Component {
}
if (scrollTop < minTop) {
activeCategory = this.categories.filter(category => !category.anchor)[0]
activeCategory = this.categories.filter(category => !(category.anchor === false))[0]
} else if (scrollTop + this.clientHeight >= this.scrollHeight) {
activeCategory = this.categories[this.categories.length - 1]
}