app/frontend/comments/comment_order_selector.component.jsx in decidim-comments-0.0.5 vs app/frontend/comments/comment_order_selector.component.jsx in decidim-comments-0.0.6
- old
+ new
@@ -14,20 +14,19 @@
this.state = {
orderBy: this.props.defaultOrderBy
}
}
- componentDidMount() {
- $(document).foundation();
- }
-
render() {
const { orderBy } = this.state;
return (
<div className="order-by__dropdown order-by__dropdown--right">
<span className="order-by__text">{ I18n.t("components.comment_order_selector.title") }</span>
- <ul className="dropdown menu" data-dropdown-menu data-close-on-click-inside="false">
+ <ul
+ className="dropdown menu"
+ data-dropdown-menu
+ data-close-on-click-inside="false">
<li>
<a>{ I18n.t(`components.comment_order_selector.order.${orderBy}`) }</a>
<ul className="menu">
<li>
<a href="" className="test" onClick={(event) => this._updateOrder(event, "best_rated")} >