fix: close only if exist

This commit is contained in:
Shariq Ansari 2024-05-20 19:46:05 +05:30
parent e699538043
commit f0b6988076

View File

@ -18,7 +18,7 @@
<Button <Button
class="rounded-l-none border-l" class="rounded-l-none border-l"
icon="x" icon="x"
@click.stop="clearfilter" @click.stop="clearfilter(false)"
/> />
</Tooltip> </Tooltip>
</template> </template>
@ -423,7 +423,7 @@ function removeFilter(index) {
function clearfilter(close) { function clearfilter(close) {
filters.value.clear() filters.value.clear()
apply() apply()
close() close && close()
} }
function updateValue(value, filter) { function updateValue(value, filter) {