Skip to content

Commit

Permalink
fix(DateInput): auto placement
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed Jan 15, 2019
1 parent 053bd2a commit 68fb450
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/DateInput/DateInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ class DateInput extends React.Component<DateInputProps, DateInputState> {
<Dropdown.Head onClick={ this.open }>
<DateInputValue mask={ mask } value={ textValue } onChange={ this.onChangeText } onBlur={ this.onBlur } clearable={ clearable } />
</Dropdown.Head>
<Dropdown.Body withPortal preventOverflow>
<Dropdown.Body placement="auto" withPortal preventOverflow>
<DatePicker { ...collectedProps } todayButton="Today" />
</Dropdown.Body>
</Dropdown>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dropdown/DropdownBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type DropdownBodyProps = {
children: React$Node | ({ closeDropdown: () => void }) => React$Node,

/** Default content position relative target */
placement?: 'top' | 'left' | 'bottom' | 'right',
placement?: 'top' | 'left' | 'bottom' | 'right' | 'auto',
/** Default content align relative target*/
pin?: 'left' | 'right',
/** Set body offset relative target */
Expand Down

0 comments on commit 68fb450

Please sign in to comment.