Skip to content

Commit

Permalink
fix: blur event is not emitted by the ModelListSelect component
Browse files Browse the repository at this point in the history
  • Loading branch information
moreta committed Jul 3, 2023
1 parent ab6d9af commit 77eed23
Show file tree
Hide file tree
Showing 6 changed files with 555 additions and 412 deletions.
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vue-search-select/docs",
"private": true,
"version": "3.1.0",
"version": "3.1.1",
"type": "module",
"author": "moreta <[email protected]>",
"license": "MIT",
Expand All @@ -13,8 +13,8 @@
"devDependencies": {
"axios": "^1.2.2",
"lodash": "^4.17.21",
"vue": "^3.2.45",
"vue-router": "^4.1.6",
"vue": "^3.3.4",
"vue-router": "^4.2.2",
"vue-search-select": "workspace:*"
}
}
4 changes: 4 additions & 0 deletions docs/src/views/ModelList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
name="mySelectName"
placeholder="select item"
@searchchange="printSearchText"
@blur="handleBlur"
>
</model-list-select>
</div>
Expand Down Expand Up @@ -191,6 +192,9 @@ export default {
// select option from parent component
this.numberItem = this.options3[0].id
},
handleBlur() {
console.log("handleBlur")
},
},
components: {
ModelListSelect,
Expand Down
1 change: 1 addition & 0 deletions libs/components/ModelListSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default {
isDisabled: this.isDisabled,
placeholder: this.placeholder,
filterPredicate: this.filterPredicate,
onBlur: () => this.$emit('blur'),
"onUpdate:modelValue": this.onInput,
onSearchchange: (searchText) => this.$emit("searchchange", searchText)
})
Expand Down
2 changes: 1 addition & 1 deletion libs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-search-select",
"version": "3.1.0",
"version": "3.1.1",
"description": "A Vue.js search select form component",
"author": "moreta <[email protected]>",
"license": "MIT",
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@vue-search-select/monorepo",
"private": true,
"version": "3.1.0",
"version": "3.1.1",
"type": "module",
"author": "moreta <[email protected]>",
"license": "MIT",
Expand All @@ -18,16 +18,16 @@
},
"engines": {
"node": ">=18",
"pnpm": ">=7"
"pnpm": ">=8"
},
"devDependencies": {
"@types/node": "^18.11.18",
"@vitejs/plugin-vue": "^4.0.0",
"sass": "^1.57.1",
"typescript": "^4.9.3",
"vite": "^4.0.0",
"vitest": "^0.27.1",
"vue": "^3.2.45",
"vue-tsc": "^1.0.11"
"@types/node": "^18.16.19",
"@vitejs/plugin-vue": "^4.2.3",
"sass": "^1.63.6",
"typescript": "^4.9.5",
"vite": "^4.3.9",
"vitest": "^0.32.2",
"vue": "^3.3.4",
"vue-tsc": "^1.8.3"
}
}
Loading

0 comments on commit 77eed23

Please sign in to comment.