Fixed #57 - MultiSelect filter cannot be turned off
parent
8e7c89965c
commit
a8893d657c
|
@ -24,7 +24,7 @@
|
||||||
<span :class="['p-checkbox-icon p-c', {'pi pi-check': allSelected}]"></span>
|
<span :class="['p-checkbox-icon p-c', {'pi pi-check': allSelected}]"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="p-multiselect-filter-container">
|
<div v-if="filter" class="p-multiselect-filter-container">
|
||||||
<input type="text" v-model="filterValue" class="p-multiselect-filter p-component p-inputtext p-component" :placeholder="filterPlaceholder">
|
<input type="text" v-model="filterValue" class="p-multiselect-filter p-component p-inputtext p-component" :placeholder="filterPlaceholder">
|
||||||
<span class="p-multiselect-filter-icon pi pi-search"></span>
|
<span class="p-multiselect-filter-icon pi pi-search"></span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -129,7 +129,7 @@ export default {
|
||||||
this.headerCheckboxFocused = false;
|
this.headerCheckboxFocused = false;
|
||||||
},
|
},
|
||||||
onClick() {
|
onClick() {
|
||||||
if (!this.$refs.overlay || !this.$refs.overlay.contains(event.target)) {
|
if (!this.disabled && (!this.$refs.overlay || !this.$refs.overlay.contains(event.target))) {
|
||||||
this.overlayVisible = !this.overlayVisible;
|
this.overlayVisible = !this.overlayVisible;
|
||||||
this.$refs.focusInput.focus();
|
this.$refs.focusInput.focus();
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,7 +127,7 @@ data() {
|
||||||
<tr>
|
<tr>
|
||||||
<td>filter</td>
|
<td>filter</td>
|
||||||
<td>boolean</td>
|
<td>boolean</td>
|
||||||
<td>true</td>
|
<td>false</td>
|
||||||
<td>When specified, displays an input field to filter the items on keyup.</td>
|
<td>When specified, displays an input field to filter the items on keyup.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue