mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
💄 fix WeekPicker popup placement
https://gw.alipayobjects.com/zos/rmsportal/DUTKByAmrAqkfKHyltgA.png
This commit is contained in:
parent
677677c4f2
commit
1865e97393
@ -167,7 +167,7 @@ class WeekPicker extends React.Component<any, WeekPickerState> {
|
||||
|
||||
const input = ({ value }: { value: moment.Moment | undefined }) => {
|
||||
return (
|
||||
<span>
|
||||
<span style={{ display: 'inline-block' }}>
|
||||
<input
|
||||
ref={this.saveInput}
|
||||
disabled={disabled}
|
||||
|
@ -5,7 +5,9 @@ exports[`WeekPicker should support style prop 1`] = `
|
||||
class="ant-calendar-picker"
|
||||
style="width: 400px;"
|
||||
>
|
||||
<span>
|
||||
<span
|
||||
style="display: inline-block;"
|
||||
>
|
||||
<input
|
||||
class="ant-calendar-picker-input ant-input"
|
||||
placeholder="Select date"
|
||||
|
@ -111,7 +111,9 @@ exports[`renders ./components/date-picker/demo/basic.md correctly 1`] = `
|
||||
<span
|
||||
class="ant-calendar-picker"
|
||||
>
|
||||
<span>
|
||||
<span
|
||||
style="display:inline-block"
|
||||
>
|
||||
<input
|
||||
class="ant-calendar-picker-input ant-input"
|
||||
placeholder="Select week"
|
||||
@ -1143,7 +1145,9 @@ exports[`renders ./components/date-picker/demo/size.md correctly 1`] = `
|
||||
<span
|
||||
class="ant-calendar-picker ant-calendar-picker-default"
|
||||
>
|
||||
<span>
|
||||
<span
|
||||
style="display:inline-block"
|
||||
>
|
||||
<input
|
||||
class="ant-calendar-picker-input ant-input"
|
||||
placeholder="Select Week"
|
||||
@ -1348,7 +1352,9 @@ exports[`renders ./components/date-picker/demo/suffix.md correctly 1`] = `
|
||||
<span
|
||||
class="ant-calendar-picker"
|
||||
>
|
||||
<span>
|
||||
<span
|
||||
style="display:inline-block"
|
||||
>
|
||||
<input
|
||||
class="ant-calendar-picker-input ant-input"
|
||||
placeholder="Select week"
|
||||
@ -1448,7 +1454,9 @@ exports[`renders ./components/date-picker/demo/suffix.md correctly 1`] = `
|
||||
<span
|
||||
class="ant-calendar-picker"
|
||||
>
|
||||
<span>
|
||||
<span
|
||||
style="display:inline-block"
|
||||
>
|
||||
<input
|
||||
class="ant-calendar-picker-input ant-input"
|
||||
placeholder="Select week"
|
||||
|
Loading…
Reference in New Issue
Block a user