3
0

Fix current filter reset on click

This commit is contained in:
Jože Fortun
2024-10-25 16:27:09 +02:00
parent 0664de71a9
commit d6c88d10f5
2 changed files with 3 additions and 4 deletions
@@ -76,14 +76,13 @@
<b-td
v-if="getField(filter.name)"
class="align-middle"
style="width: 1%;"
>
<b-button
:id="`${groupIndex}-${index}`"
ref="delete"
variant="outline-extra-light"
class="d-block text-dark border-0 h-full ml-2 px-2"
class="d-block text-dark border-0 h-full ml-2 px-2 mt-1"
@click="deleteFilter(groupIndex, index)"
>
<font-awesome-icon
@@ -486,7 +485,6 @@ export default {
td {
padding: 0;
padding-bottom: 0.5rem;
vertical-align: middle;
}
.btn-add-group {
@@ -41,6 +41,7 @@
:selected-field="selectedField"
:namespace="namespace"
:mock.sync="mock"
start-empty
@prevent-close="onValueChange"
/>
</b-card-body>
@@ -306,7 +307,7 @@ export default {
// If no filterGroups, add default
if (!this.componentFilter.length) {
this.componentFilter.push(this.createDefaultFilterGroup(undefined, this.selectedField))
} else if (!this.inFilter) {
} else if (this.selectedField && !this.inFilter) {
this.addFilter(0)
}
},