Skip to content

Commit

Permalink
fix: 修复 Input.Number 内嵌标题用法当 value = 0 时不显示值的问题 (#2111)
Browse files Browse the repository at this point in the history
  • Loading branch information
leehaoChen authored Jun 6, 2024
1 parent f7f1705 commit a873e6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
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

0 comments on commit a873e6d

Please sign in to comment.