From dc24278e712b45a08872cbf3608a3d36dabe74d0 Mon Sep 17 00:00:00 2001 From: Klaudija Ljevar Date: Fri, 24 Nov 2023 11:57:19 +0100 Subject: [PATCH] chore: removing menuIsOpen prop from Storybook (#2648) Co-authored-by: Carlos Cortizas <97907068+CarlosCortizasCT@users.noreply.github.com> --- .../inputs/async-select-input/src/async-select-input.story.js | 2 -- .../inputs/search-select-input/src/search-select-input.story.js | 2 -- .../components/inputs/select-input/src/select-input.story.js | 2 -- 3 files changed, 6 deletions(-) diff --git a/packages/components/inputs/async-select-input/src/async-select-input.story.js b/packages/components/inputs/async-select-input/src/async-select-input.story.js index d1698bf147..b3220bc5ee 100644 --- a/packages/components/inputs/async-select-input/src/async-select-input.story.js +++ b/packages/components/inputs/async-select-input/src/async-select-input.story.js @@ -60,7 +60,6 @@ class SelectStory extends Component { static displayName = 'SelectStory'; render() { const isMulti = boolean('isMulti', false); - const menuIsOpen = boolean('menuIsOpen', false); const defaultOptions = boolean('defaultOptions', true) ? colourOptions : false; @@ -98,7 +97,6 @@ class SelectStory extends Component { isDisabled={boolean('isDisabled', false)} isReadOnly={boolean('isReadOnly', false)} isMulti={isMulti} - menuIsOpen={menuIsOpen} isSearchable={boolean('isSearchable', true)} maxMenuHeight={number('maxMenuHeight', 220)} closeMenuOnSelect={boolean('closeMenuOnSelect', true)} diff --git a/packages/components/inputs/search-select-input/src/search-select-input.story.js b/packages/components/inputs/search-select-input/src/search-select-input.story.js index 85221e936a..a5b1bdec31 100644 --- a/packages/components/inputs/search-select-input/src/search-select-input.story.js +++ b/packages/components/inputs/search-select-input/src/search-select-input.story.js @@ -52,7 +52,6 @@ class SearchSelectInputStory extends Component { static displayName = 'SearchSelectInputStory'; render() { const isMulti = boolean('isMulti', false); - const menuIsOpen = boolean('menuIsOpen', false); const noOptionsMessage = text( 'No options message', 'No matches found for your search term' @@ -101,7 +100,6 @@ class SearchSelectInputStory extends Component { isMulti={isMulti} noOptionsMessage={() => noOptionsMessage} loadingMessage={loadingMessage} - menuIsOpen={menuIsOpen} maxMenuHeight={number('maxMenuHeight', 220)} closeMenuOnSelect={boolean('closeMenuOnSelect', true)} name={text('name', 'form-field-name')} diff --git a/packages/components/inputs/select-input/src/select-input.story.js b/packages/components/inputs/select-input/src/select-input.story.js index be37f415ce..d9f61e2d06 100644 --- a/packages/components/inputs/select-input/src/select-input.story.js +++ b/packages/components/inputs/select-input/src/select-input.story.js @@ -98,7 +98,6 @@ storiesOf('Components|Inputs/SelectInputs', module) }, ]; const isMulti = boolean('isMulti', false); - const menuIsOpen = boolean('menuIsOpen', false); const showOptionGroupDivider = boolean('Show option group divider', false); const shouldMenuFlip = boolean('Show menu flipping above the input', false); const iconLeft = icons[select('iconLeft', ['', ...iconNames])]; @@ -146,7 +145,6 @@ storiesOf('Components|Inputs/SelectInputs', module) isDisabled={boolean('isDisabled', false)} isReadOnly={boolean('isReadOnly', false)} isMulti={isMulti} - menuIsOpen={menuIsOpen} isSearchable={boolean('isSearchable', false)} maxMenuHeight={number('maxMenuHeight', 220)} closeMenuOnSelect={boolean('closeMenuOnSelect', true)}