Fixed #57 - MultiSelect filter cannot be turned off

pull/104/head
cagataycivici 2019-10-01 15:42:24 +03:00
parent 8e7c89965c
commit a8893d657c
2 changed files with 8 additions and 8 deletions

View File

@ -24,7 +24,7 @@
<span :class="['p-checkbox-icon p-c', {'pi pi-check': allSelected}]"></span>
</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">
<span class="p-multiselect-filter-icon pi pi-search"></span>
</div>
@ -129,7 +129,7 @@ export default {
this.headerCheckboxFocused = false;
},
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.$refs.focusInput.focus();
}

View File

@ -127,7 +127,7 @@ data() {
<tr>
<td>filter</td>
<td>boolean</td>
<td>true</td>
<td>false</td>
<td>When specified, displays an input field to filter the items on keyup.</td>
</tr>
<tr>