@wikala/spmkt 2.25.7 → 2.25.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,9 +2,9 @@
2
2
  <div class="category-filters category-filter-component">
3
3
  <template v-for="(filter, index) in filters">
4
4
  <div class="filter-container">
5
- <div class="filter-title">
5
+ <div class="filter-title" @click="expandFilter($event)">
6
6
  <h2>{{ filter.display_name }}</h2>
7
- <span class="filter-expand" @click="expandFilter($event)"><i :class="{ 'fa': true, 'fa-plus': !isExpanded(filter.id), 'fa-minus': isExpanded(filter.id) }"></i></span>
7
+ <span class="filter-expand"><i :class="{ 'fa': true, 'fa-plus': !isExpanded(filter.id), 'fa-minus': isExpanded(filter.id) }"></i></span>
8
8
  </div>
9
9
  <div :class="{ 'filter-content': true, 'is-hidden': !isExpanded(filter.id) }">
10
10
  <div v-if="rangeTypes.includes(filter.type)" class="range-filter-container" >
@@ -98,9 +98,10 @@ export default {
98
98
  },
99
99
 
100
100
  expandFilter(e) {
101
- let filterContent = e.target.parentNode.parentNode.nextElementSibling
102
- let expandIcon = e.target
103
-
101
+ let filterTitle = e.target.closest('.filter-title')
102
+ let filterContent = filterTitle.nextElementSibling
103
+ let expandIcon = filterTitle.querySelector('.filter-expand i')
104
+
104
105
  filterContent.classList.toggle('is-hidden')
105
106
  expandIcon.classList.toggle('fa-plus')
106
107
  expandIcon.classList.toggle('fa-minus')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikala/spmkt",
3
- "version": "2.25.7",
3
+ "version": "2.25.8",
4
4
  "private": false,
5
5
  "description": "supermarket",
6
6
  "scripts": {