Skip to content

Commit

Permalink
fix: 修复 datepicker time range 模式下多次触发 onchange 的问题 (#2068)
Browse files Browse the repository at this point in the history
Co-authored-by: 颜宇浩 <[email protected]>
  • Loading branch information
KMS-Bismarck and 颜宇浩 authored Nov 23, 2023
1 parent 1cde7de commit 87ed2e0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 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.11-beta.2",
"version": "2.0.11",
"description": "Shein 前端组件库",
"main": "./lib/index.js",
"module": "./es/index.js",
Expand Down
9 changes: 3 additions & 6 deletions site/pages/documentation/changelog/2.x.x.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# 更新日志
### 2.0.11-beta.2
- 修复 Tree 当 data 为代理对象时拖拽功能会报错的问题 (< 2.0.12)

### 2.0.11-beta.1
- 修复 Cascader 未开启 mode 模式下无法回显选中项的问题(< 2.0.12)

### 2.0.11-rc.1
### 2.0.11
- 修复 Popover 中点击元素被销毁会导致 Popover 关闭的问题(< 2.0.11)
- 修复 Cascader 未开启 mode 模式下无法回显选中项的问题(< 2.0.11)
- 修复 Tree 当 data 为代理对象时拖拽功能会报错的问题 (< 2.0.11)

### 2.0.10
- 修复 Radio 回车会取消选择的问题(< 2.0.10)
Expand Down
1 change: 0 additions & 1 deletion src/DatePicker/Time.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ class Time extends PureComponent<UnionPannelProps> {

if (isDisabled) return
this.props.onChange(...paramUtils.timeHandleChangeParams(date, true, false, true))
this.props.onChange(paramUtils.timeHandleChangeParams(date, true, false)[0])
}

renderTimeScroller(value: Date, min: Date | null, max: Date | null, hours: number) {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as utils from './utils'

export default { utils, version: '2.0.11-beta.1' }
export default { utils, version: '2.0.11' }
export { utils }
export { setLocale } from './locale'
export { color, style } from './utils/expose'
Expand Down

0 comments on commit 87ed2e0

Please sign in to comment.