Skip to content

Commit

Permalink
Remove duplicate dropdown text (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardwang authored Nov 1, 2019
1 parent 9f086bf commit 11ec4e4
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/core/src/components/Dropdown/Dropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ import React from 'react';
import classNames from 'classnames';
import uniqueId from 'lodash.uniqueid';

/**
* A `Dropdown` component can be used to render an HTML `select` menu.
* Any _undocumented_ props that you pass to this component will be passed
* to the `select` element, so you can use this to set additional attributes if
* necessary.
*
* Class-based component gives flexibility for active focus management
* by allowing refs to be passed.
*/
export class Dropdown extends React.PureComponent {
constructor(props) {
super(props);
Expand Down Expand Up @@ -172,8 +163,7 @@ Dropdown.propTypes = {
options: PropTypes.arrayOf(
PropTypes.shape({
label: PropTypes.node.isRequired,
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
.isRequired
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
})
).isRequired,
onBlur: PropTypes.func,
Expand Down

0 comments on commit 11ec4e4

Please sign in to comment.