mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 19:19:26 +08:00
Make sure DatePicker style.width can be effective, close #4920
This commit is contained in:
parent
bc988f486b
commit
a87016ce54
@ -165,7 +165,7 @@ export default class RangePicker extends React.Component<any, any> {
|
||||
// default width for showTime
|
||||
const pickerStyle = {} as any;
|
||||
if (props.showTime) {
|
||||
pickerStyle.minWidth = 300;
|
||||
pickerStyle.width = style.width || 300;
|
||||
}
|
||||
|
||||
const clearIcon = (!props.disabled && props.allowClear && value && (value[0] || value[1]))
|
||||
|
Loading…
Reference in New Issue
Block a user