From 11ec4e4f9fa924f98e864adda0d938d914f1a3b8 Mon Sep 17 00:00:00 2001 From: Bernard Date: Fri, 1 Nov 2019 14:26:26 -0500 Subject: [PATCH] Remove duplicate dropdown text (#541) --- packages/core/src/components/Dropdown/Dropdown.jsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/core/src/components/Dropdown/Dropdown.jsx b/packages/core/src/components/Dropdown/Dropdown.jsx index beb5b12e2f..bd30501bc1 100644 --- a/packages/core/src/components/Dropdown/Dropdown.jsx +++ b/packages/core/src/components/Dropdown/Dropdown.jsx @@ -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); @@ -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,