Skip to content

Commit

Permalink
fix(input): remove the default style whenthe type set to password,
Browse files Browse the repository at this point in the history
…closes tusen-ai#5384
  • Loading branch information
jizai1125 committed Nov 20, 2023
1 parent 86e72ce commit a1a36f2
Show file tree
Hide file tree
Showing 3 changed files with 3 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 @@ -8,6 +8,7 @@
- Fix `n-tree` The style of the selected node is not displayed in the case of 'disabled'.
- Fix `n-tree` on `virtual-scroll` empty data placeholder lost problem.
- Fix `n-watermark` won't clear it's content when `content` prop is set to empty.
- Fix `n-input` will display the password reveal button by default when the `type` is set to `password`. Starting with Microsoft Edge browser Version 87. closes [#5384](https://github.com/tusen-ai/naive-ui/issues/5384).

### Features

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- 修复 `n-tree``disabled` 的情况下不显示选中节点的样式
- 修复 `n-tree` `virtual-scroll` 空数据占位符丢失
- 修复 `n-watermark` 组件中的 `content` 属性为空时,无法清空水印内容
- 修复 `n-input` 从 Edge 浏览器 87 版本开始,`type``password` 时默认样式会多出一个显示密码按钮,关闭[#5384](https://github.com/tusen-ai/naive-ui/issues/5384)

### Features

Expand Down
1 change: 1 addition & 0 deletions src/input/src/styles/input.cssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export default cB('input', `
height: var(--n-height);
line-height: var(--n-height);
`, [
c('&[type=password]::-ms-reveal', 'display: none;'),
c('+', [
cE('placeholder', `
display: flex;
Expand Down

0 comments on commit a1a36f2

Please sign in to comment.