Skip to content

Commit

Permalink
feat: bump to 2.5.3-beta.12 && tag-input 修复 allow-create 配置,输入空格也会创…
Browse files Browse the repository at this point in the history
…建 tag 的问题
  • Loading branch information
ielgnaw committed Dec 1, 2022
1 parent 25ffb89 commit 423b409
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions example/components/changelog/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@

<div class="changelog-wrapper">

### 2.5.3-beta.12 {page=#/changelog}

* **[fix]**:
- [TagInput 标签输入框](#/tag-input) 修复 `allow-create` 配置,输入空格也会创建 tag 的问题

---

### 2.5.3-beta.11 {page=#/changelog}

* **[fix]**:
- [Input 输入框](#/input) 数字输入框输入 `-` 后失去焦点后,如果设置了最小值,值变为最小值,没有设置最小值,值变为 0

---

### 2.5.3-beta.9 {page=#/changelog}

* **[fix]**:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bk-magic-vue",
"version": "2.5.3-beta.11",
"version": "2.5.3-beta.12",
"description": "基于蓝鲸 Magicbox 和 Vue 的前端组件库",
"main": "dist/bk-magic-vue.min.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/components/tag-input/tag-input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ export default {
) {
this.handlerResultSelect(this.renderList[this.focusItemIndex], 'select')
this.showList = false
} else if (this.allowCreate) {
} else if (this.allowCreate && this.curInputValue.trim()) {
event.preventDefault()
const tag = this.curInputValue
this.handlerResultSelect(tag, 'custom')
Expand Down

0 comments on commit 423b409

Please sign in to comment.