Skip to content

Commit

Permalink
fix(input): click clear icon to trigger twice (tusen-ai#5511)
Browse files Browse the repository at this point in the history
  • Loading branch information
Volankey authored Jan 23, 2024
1 parent 8c46915 commit 6da710d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@
- Fix `n-avatar`'s lazy loading and `fallback-src` prop not working when load error in lazy, closes [#5007](https://github.com/tusen-ai/naive-ui/issues/5007).
- <del>Fix `n-split` has no color if it's not used in a card.</del>
- Fix `n-card` `footer-class` prop not working.
- Fix `n-input` click clear icon to trigger twice when using the `clearable`, closes [#5510](https://github.com/tusen-ai/naive-ui/issues/5510).
- Fix `n-tabs` may miss over-scroll shadow if `placement` is `'left'` or `'right'`.
- Fix `n-date-picker` with range type can input start time that is later than end time, closes [#5544](https://github.com/tusen-ai/naive-ui/issues/5544).


### Features

- 🌟 Adds `n-flex` component.
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
- 修复 `n-avatar` 懒加载和懒加载失败时 `fallback-src` 属性都不生效,关闭 [#5007](https://github.com/tusen-ai/naive-ui/issues/5007)
- <del>修复 `n-split` 不在卡片中使用没有颜色</del>
- 修复 `n-card``footer-class` 属性不生效
- 修复 `n-input` 在使用 `clearable` 时点击触发两次的问题,关闭 [#5510](https://github.com/tusen-ai/naive-ui/issues/5510)
- 修复 `n-tabs``placement``'left'``'right'` 时初始化滚动阴影可能不正确
- 修复 `n-date-picker` 在范围类型下,可以通过输入框使开始时间大于结束时间,关闭 [#5544](https://github.com/tusen-ai/naive-ui/issues/5544)

Expand Down
1 change: 0 additions & 1 deletion src/_internal/clear/src/Clear.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export default defineComponent({
<div
key="dismiss"
class={`${clsPrefix}-base-clear__clear`}
onClick={this.onClear}
onMousedown={this.handleMouseDown}
data-clear
>
Expand Down

0 comments on commit 6da710d

Please sign in to comment.