+
{this.categories.map(category => (
-
))}
diff --git a/src/components/views/emojipicker/Header.js b/src/components/views/emojipicker/Header.js
index d061f8559a..95af68f4a6 100644
--- a/src/components/views/emojipicker/Header.js
+++ b/src/components/views/emojipicker/Header.js
@@ -34,8 +34,7 @@ class Header extends React.Component {
this.handleClick = this.handleClick.bind(this);
}
- handleClick(ev) {
- const selected = ev.target.getAttribute("data-category-id");
+ handleClick(selected) {
this.setState({selected});
this.props.onAnchorClick(selected);
};
@@ -44,9 +43,9 @@ class Header extends React.Component {
return (