diff --git a/CHANGELOG.md b/CHANGELOG.md index 70fdb93ef..c0c09b5c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - **Modal** sometimes not loading `window.scroll` polyfill after the browser hard refresh. +### Added + +- **Dropdown** `disabled` prop added to options + ## [9.142.0] - 2021-05-19 ### Added diff --git a/react/components/Dropdown/index.js b/react/components/Dropdown/index.js index 97f727d58..ef2363f88 100755 --- a/react/components/Dropdown/index.js +++ b/react/components/Dropdown/index.js @@ -244,7 +244,7 @@ class Dropdown extends Component { )} {options.map(option => ( - ))} @@ -290,6 +290,7 @@ Dropdown.propTypes = { /** Dropdown options list */ options: PropTypes.arrayOf( PropTypes.shape({ + disabled: PropTypes.bool, value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) .isRequired, label: PropTypes.oneOfType([PropTypes.string, PropTypes.number])