diff --git a/src/components/common/Common.css b/src/components/common/Common.css index c436ddbc7..4570bbaa5 100644 --- a/src/components/common/Common.css +++ b/src/components/common/Common.css @@ -84,6 +84,15 @@ button { border-radius: 0; } +.p-link { + text-align: left; + background: transparent; + margin: 0; + padding: 0; + border: none; + cursor: pointer; +} + /* Overlay Animations */ .p-input-overlay { -webkit-transform: translateY(5%); diff --git a/src/components/dropdown/Dropdown.vue b/src/components/dropdown/Dropdown.vue index cf326ba07..2533af666 100644 --- a/src/components/dropdown/Dropdown.vue +++ b/src/components/dropdown/Dropdown.vue @@ -17,7 +17,7 @@
- +
@@ -350,7 +350,7 @@ export default { }, computed: { visibleOptions() { - if (this.filterValue) + if (this.filterValue && this.filterValue.trim().length > 0) return this.options.filter(option => this.getOptionLabel(option).toLowerCase().indexOf(this.filterValue.toLowerCase()) > -1); else return this.options; diff --git a/src/components/multiselect/MultiSelect.css b/src/components/multiselect/MultiSelect.css index ec114cd4a..d609decf2 100644 --- a/src/components/multiselect/MultiSelect.css +++ b/src/components/multiselect/MultiSelect.css @@ -55,6 +55,7 @@ padding: 0.2em; position: absolute; min-width: 10em; + z-index: 2; } .p-multiselect .p-multiselect-panel { diff --git a/src/components/multiselect/MultiSelect.vue b/src/components/multiselect/MultiSelect.vue index 06f0d50f9..893daeacd 100644 --- a/src/components/multiselect/MultiSelect.vue +++ b/src/components/multiselect/MultiSelect.vue @@ -15,6 +15,23 @@
+
+
+
+ +
+
+ +
+
+
+ + +
+ +
  • 0) return this.options.filter(option => this.getOptionLabel(option).toLowerCase().indexOf(this.filterValue.toLowerCase()) > -1); else return this.options; @@ -299,6 +325,12 @@ export default { } return label; + }, + allSelected() { + if (this.filterValue && this.filterValue.trim().length > 0) + return this.value && this.visibleOptions && (this.value.length > 0 && this.value.length === this.visibleOptions.length); + else + return this.value && this.options && (this.value.length > 0 && this.value.length === this.options.length); } } } diff --git a/src/views/multiselect/MultiSelectDemo.vue b/src/views/multiselect/MultiSelectDemo.vue index fbcfd937b..19c097ad8 100644 --- a/src/views/multiselect/MultiSelectDemo.vue +++ b/src/views/multiselect/MultiSelectDemo.vue @@ -57,7 +57,7 @@ export default {