Skip to content

Commit

Permalink
fix(select): maxTagCount tag size error (#2367)
Browse files Browse the repository at this point in the history
doc

Co-authored-by: zuofenghua <[email protected]>
  • Loading branch information
dewfall123 and zuofenghua authored Feb 9, 2022
1 parent c337e72 commit f6bf6b5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Remove useless `console.log` in `resolveSlot`.
- Fix `n-tag` misses background color when `checkable=true`.
- Fix `n-tree` throws `Image` error in `happydom` testing environment.
- fix `selection` `maxTagCount` tag size error.

### i18n

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- 移除 `resolveSlot` 中无用的 `console.log`
- 修复 `n-tag``checkable=true` 时缺少背景色
- 修复 `n-tree``happydom` 测试环境下由于 `Image` 对象报错
- 修复 `selection` `maxTagCount` 标签 size 错误问题

### i18n

Expand Down
2 changes: 2 additions & 0 deletions src/_internal/selection/src/Selection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ export default defineComponent({
ref="counterWrapperRef"
>
<NTag
size={size}
ref="counterRef"
onMouseenter={this.handleMouseEnterCounter}
onMouseleave={this.handleMouseLeaveCounter}
Expand All @@ -638,6 +639,7 @@ export default defineComponent({
key="__counter__"
>
<NTag
size={size}
ref="counterRef"
onMouseenter={this.handleMouseEnterCounter}
disabled={disabled}
Expand Down
1 change: 1 addition & 0 deletions src/select/demos/zhCN/max-tag-count.demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
multiple
:options="options"
max-tag-count="responsive"
size="small"
/>
<n-select
v-model:value="value"
Expand Down

0 comments on commit f6bf6b5

Please sign in to comment.