Skip to content

Commit

Permalink
fix(Select): default with portal
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed Apr 22, 2019
1 parent 3bb2a84 commit bff6acb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ const customStyles = ({ hasError, zIndex = Z_INDEX.DROPDOWN }) => ({
});

class Select extends React.Component<SelectProps> {
static defaultProps = {
withPortal: true,
};

onChange = (option: Object) => {
let value = null;

Expand Down
1 change: 1 addition & 0 deletions src/components/SelectField/SelectField.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ describe('<SelectField />', () => {
placeholder,
stretch: true,
value: null,
withPortal: true,
});

expect(passedFormFieldProps).toEqual({
Expand Down

0 comments on commit bff6acb

Please sign in to comment.