Skip to content

Commit

Permalink
v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
danyaridiger committed Apr 3, 2024
1 parent c9e94c9 commit b6cac2e
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 9 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Patch notes

Current vue-extended-multiselect version: **0.4.0**
Current vue-extended-multiselect version: **0.4.1**

***

Expand Down Expand Up @@ -86,3 +86,8 @@ Current vue-extended-multiselect version: **0.4.0**
* Fixing bug with always basic icon filter.
* Fixing bug with rendering icon filter instead of loader icon filter.
* Fixing bug with "disabledPrimitiveOptions" prop accepting options of type "Array".

### 0.4.1 (2024-04-03)

* Adding JSDoc blocks to tools.
* Fixing bug with the placeholder disappearing after switching the list of options.
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.4.0
# vue-extended-multiselect v0.4.1

***

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.4.0",
"version": "0.4.1",
"description": "Extended multiselect component for applications based on Vue 2 framework",
"keywords": [
"multiselect",
Expand Down
4 changes: 1 addition & 3 deletions src/components/ExtendedMultiselectInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,7 @@ export default Vue.extend({
* @returns {boolean} display
*/
placeholderBlockShown() {
if (this.selectedOptions.length || this.searchFieldForwarding) {
return false;
}
if (this.selectedOptions.length) 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 @@ -285,7 +285,7 @@ import store from "../vuex/store";
* @mixes ToggleMixin
* @mixes CancelMixin
* @mixes PreselectedOptionsMixin
* @version 0.4.0
* @version 0.4.1
*/
export default Vue.extend({
name: "VueExtendedMultiselect",
Expand Down
14 changes: 14 additions & 0 deletions src/tools/Debounce.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
/**
* Debounce functions generator
* @class
*/
class Debounce {

_localTimeout = null;
_callback = null;
_timer = 0;

/**
* Debounce constructor
* @constructor
* @param {Function} callback - debounce function
* @param {number} timer - milliseconds
*/
constructor(callback, timer) {
this._callback = callback;
this._timer = timer;
}

/**
* Runs debounce function
* @method
*/
start() {
if (this._localTimeout) {
clearTimeout(this._localTimeout);
Expand Down

0 comments on commit b6cac2e

Please sign in to comment.