From 0a1067c17fe3ffed80c009ac75179b3070abc3de Mon Sep 17 00:00:00 2001 From: razvan Date: Mon, 7 Jun 2021 17:51:37 +0300 Subject: [PATCH 1/2] Adding disabled attr to dropdown select options --- react/components/Dropdown/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/components/Dropdown/index.js b/react/components/Dropdown/index.js index 97f727d58..824621deb 100755 --- a/react/components/Dropdown/index.js +++ b/react/components/Dropdown/index.js @@ -244,7 +244,7 @@ class Dropdown extends Component { )} {options.map(option => ( - ))} From 9fcd7769098680e176d08f4e21629b75232f9964 Mon Sep 17 00:00:00 2001 From: razvan Date: Wed, 16 Jun 2021 10:41:49 +0300 Subject: [PATCH 2/2] Updated changelog and proptypes --- CHANGELOG.md | 4 ++++ react/components/Dropdown/index.js | 1 + 2 files changed, 5 insertions(+) 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 824621deb..ef2363f88 100755 --- a/react/components/Dropdown/index.js +++ b/react/components/Dropdown/index.js @@ -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])