Skip to content

Commit

Permalink
1.7.1 [PATCH][FIX] - Set initial active category
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Jan 8, 2018
1 parent a45f42f commit a171123
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "emoji-picker-react",
"version": "1.7.0",
"version": "1.7.1",
"description": "React emoji-picker component",
"main": "./dist/index.js",
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions src/EmojiPicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class EmojiPicker extends Component {
seenCategories: {
0: true
},
activeCategory: 0,
seenInSearch: {},
modifiersSpread: false
};
Expand Down Expand Up @@ -66,7 +65,7 @@ class EmojiPicker extends Component {
}

componentDidMount() {
this.setActiveCategory({index: 0});
this.setActiveCategory({ index: 0 });
}

setPickerClassname(index, nextValue = '') {
Expand Down

0 comments on commit a171123

Please sign in to comment.