-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix(input): placeholder bug #918
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/tusimple/naive-ui/CkxvD4s7bMsYUhQGQNTiHp1TCBQa |
Codecov Report
@@ Coverage Diff @@
## main #918 +/- ##
==========================================
- Coverage 45.06% 44.64% -0.43%
==========================================
Files 509 509
Lines 12463 12460 -3
Branches 3503 3501 -2
==========================================
- Hits 5617 5563 -54
- Misses 5847 5896 +49
- Partials 999 1001 +2
Continue to review full report at Codecov.
|
src/input/src/utils.ts
Outdated
export function isEmptyValue (value: any): boolean { | ||
return ['', undefined, null].includes(value) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个逻辑看起来不是很通用,别放在这里
CHANGELOG.zh-CN.md
Outdated
@@ -5,6 +5,7 @@ | |||
### Fixes | |||
|
|||
- 修复 `n-notification` 导出的 `NotificationReactive` 类型不可变,关闭 [#876](https://github.com/TuSimple/naive-ui/issues/876) | |||
- 修复 `n-input` `placeholder` bug,关闭 [#914](https://github.com/TuSimple/naive-ui/issues/914) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
把问题写全了,语焉不详不好
* fix(input): placeholder bug * update changelog * update doc * feat(input): optimization Co-authored-by: Jiwen Bai <56228105@qq.com> Co-authored-by: 07akioni <07akioni2@gmail.com>
Closes #914