Skip to content

A platform for community discussion. Free, open, simple.

DEV: Remove jquery from themes list (#16980)

Isaac Janzenf5e4df1b0ec4
diff --git a/app/assets/javascripts/admin/addon/components/themes-list-item.js b/app/assets/javascripts/admin/addon/components/themes-list-item.js
index b619f160b40..e2237e249ba 100644
--- a/app/assets/javascripts/admin/addon/components/themes-list-item.js
+++ b/app/assets/javascripts/admin/addon/components/themes-list-item.js
@@ -15,7 +15,7 @@ export default Component.extend({
displayHasMore: gt("theme.childThemes.length", MAX_COMPONENTS),
click(e) {
- if (!$(e.target).hasClass("others-count")) {
+ if (!e.target.classList.contains("others-count")) {
this.navigateToTheme();
}
},