Skip to content

Commit

Permalink
v0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
danyaridiger committed Apr 4, 2024
1 parent 671ca68 commit e26d3c3
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 9 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Patch notes

Current vue-extended-multiselect version: **0.5.1**
Current vue-extended-multiselect version: **0.5.2**

***

Expand Down Expand Up @@ -107,4 +107,8 @@ Current vue-extended-multiselect version: **0.5.1**

### 0.5.1 (2024-04-04)

* Fixing bug with incorrect options list placement.
* Fixing bug with incorrect options list placement.

### 0.5.2 (2024-04-04)

* Fixing bug with co-appearance of search field and placeholder.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# vue-extended-multiselect v0.5.0
# vue-extended-multiselect v0.5.2

***

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-extended-multiselect",
"version": "0.5.1",
"version": "0.5.2",
"description": "Extended multiselect component for applications based on Vue 2 framework",
"keywords": [
"multiselect",
Expand Down
16 changes: 14 additions & 2 deletions src/components/ExtendedMultiselectInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
v-else
>
<span
v-if="placeholderBlockShown"
v-if="hintBlockShown"
class="extended__multiselect-placeholder"
>
{{ appropriatePlaceholder }}
Expand Down Expand Up @@ -485,6 +485,18 @@ export default Vue.extend({
return this.createOnTheGo ? this.createOptionPlaceholder : this.placeholder;
},
/**
* Determines whether to show placeholder block
* if search field is hidden
* @function
* @returns {boolean} display
*/
hintBlockShown() {
if (this.selectedOptions.length) return false;
return true;
},
/**
* Sets "margin-top" css property to multiple option blocks
* if search field is shown
Expand All @@ -501,7 +513,7 @@ export default Vue.extend({
* @returns {boolean} display
*/
placeholderBlockShown() {
if (this.selectedOptions.length) return false;
if (this.selectedOptions.length || this.searchFieldForwarding) return false;
return true;
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/VueExtendedMultiselect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ import store from "../vuex/store";
* @mixes ToggleMixin
* @mixes CancelMixin
* @mixes PreselectedOptionsMixin
* @version 0.5.1
* @version 0.5.2
*/
export default Vue.extend({
name: "VueExtendedMultiselect",
Expand Down

0 comments on commit e26d3c3

Please sign in to comment.