Skip to content
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.Number 内嵌标题用法当 value = 0 时不显示值的问题 #2111

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shineout",
"version": "2.0.18-beta.1",
"version": "2.0.18",
"description": "Shein 前端组件库",
"main": "./lib/index.js",
"module": "./es/index.js",
Expand Down
3 changes: 2 additions & 1 deletion site/pages/documentation/changelog/2.x.x.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# 更新日志

### 2.0.18-beta.1
### 2.0.18

- 优化内部 hideable 组件关闭逻辑解决在某些场景下的报错问题
- 优化 Gird 动态创建样式逻辑来适配微前端场景
- 修复 Input.Number 内嵌标题用法当 value = 0 时不显示值的问题

### 2.0.17

Expand Down
3 changes: 2 additions & 1 deletion src/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ class Input extends PureComponent<Props> {
className={isNumber ? inputClass('number-title-box') : undefined}
key="input"
innerTitle={innerTitle}
open={!!inputFocus || !!value}
// @ts-ignore
open={!!inputFocus || !!value || value === 0}
>
<input
{...cleanProps(other)}
Expand Down
Loading