diff --git a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap index cef53693d108..b4e08957b66d 100644 --- a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap +++ b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap @@ -920,7 +920,6 @@ Map { "type": "func", }, "placeholder": Object { - "isRequired": true, "type": "string", }, "selectedItem": Object { diff --git a/packages/react/src/components/ComboBox/ComboBox-story.js b/packages/react/src/components/ComboBox/ComboBox-story.js index 5c21236a20b2..cd5e59dc9307 100644 --- a/packages/react/src/components/ComboBox/ComboBox-story.js +++ b/packages/react/src/components/ComboBox/ComboBox-story.js @@ -68,7 +68,6 @@ export const ComboboxStory = () => ( id="carbon-combobox" items={items} itemToString={(item) => (item ? item.text : '')} - placeholder="Filter..." titleText="ComboBox title" helperText="Combobox helper text" /> @@ -79,7 +78,6 @@ ComboboxStory.storyName = 'Combobox'; const props = () => ({ id: text('Combobox ID (id)', 'carbon-combobox-example'), - placeholder: text('Placeholder text (placeholder)', 'Filter...'), titleText: text('Title (titleText)', 'Combobox title'), helperText: text('Helper text (helperText)', 'Optional helper text here'), light: boolean('Light (light)', false), @@ -127,7 +125,6 @@ export const Disabled = () => ( disabled items={items} itemToString={(item) => (item ? item.text : '')} - placeholder="Filter..." titleText="ComboBox title" helperText="Combobox helper text" /> @@ -142,7 +139,6 @@ export const Light = () => ( light items={items} itemToString={(item) => (item ? item.text : '')} - placeholder="Filter..." titleText="ComboBox title" helperText="Combobox helper text" /> diff --git a/packages/react/src/components/ComboBox/ComboBox.js b/packages/react/src/components/ComboBox/ComboBox.js index afe6941fa401..59d4f8e3dbef 100644 --- a/packages/react/src/components/ComboBox/ComboBox.js +++ b/packages/react/src/components/ComboBox/ComboBox.js @@ -509,7 +509,7 @@ ComboBox.propTypes = { * Used to provide a placeholder text node before a user enters any input. * This is only present if the control has no items selected */ - placeholder: PropTypes.string.isRequired, + placeholder: PropTypes.string, /** * For full control of the selection diff --git a/packages/react/src/components/MultiSelect/next/FilterableMultiSelect.js b/packages/react/src/components/MultiSelect/next/FilterableMultiSelect.js index 4bb99a7afbf5..48959ff05680 100644 --- a/packages/react/src/components/MultiSelect/next/FilterableMultiSelect.js +++ b/packages/react/src/components/MultiSelect/next/FilterableMultiSelect.js @@ -531,7 +531,7 @@ FilterableMultiSelect.propTypes = { * Generic `placeholder` that will be used as the textual representation of * what this field is for */ - placeholder: PropTypes.string.isRequired, + placeholder: PropTypes.string, /** * Specify feedback (mode) of the selection. diff --git a/packages/react/src/components/MultiSelect/next/MultiSelect.stories.js b/packages/react/src/components/MultiSelect/next/MultiSelect.stories.js index 35db3888fa05..7838edd5be5a 100644 --- a/packages/react/src/components/MultiSelect/next/MultiSelect.stories.js +++ b/packages/react/src/components/MultiSelect/next/MultiSelect.stories.js @@ -88,7 +88,6 @@ export const _Filterable = () => { helperText="This is helper text" items={items} itemToString={(item) => (item ? item.text : '')} - placeholder="Filter" selectionFeedback="top-after-reopen" /> @@ -142,7 +141,6 @@ export const _FilterableWithLayer = () => { helperText="This is helper text" items={items} itemToString={(item) => (item ? item.text : '')} - placeholder="Filter" selectionFeedback="top-after-reopen" /> @@ -152,7 +150,6 @@ export const _FilterableWithLayer = () => { helperText="This is helper text" items={items} itemToString={(item) => (item ? item.text : '')} - placeholder="Filter" selectionFeedback="top-after-reopen" /> @@ -162,7 +159,6 @@ export const _FilterableWithLayer = () => { helperText="This is helper text" items={items} itemToString={(item) => (item ? item.text : '')} - placeholder="Filter" selectionFeedback="top-after-reopen" /> diff --git a/packages/react/src/components/TextArea/TextArea-story.js b/packages/react/src/components/TextArea/TextArea-story.js index 3d9a22f247c2..91ed33ab9764 100644 --- a/packages/react/src/components/TextArea/TextArea-story.js +++ b/packages/react/src/components/TextArea/TextArea-story.js @@ -26,7 +26,6 @@ const TextAreaProps = () => ({ 'A valid value is required' ), helperText: text('Helper text (helperText)', 'Optional helper text.'), - placeholder: text('Placeholder text (placeholder)', 'Placeholder text.'), id: 'test2', cols: number('Columns (columns)', 50), rows: number('Rows (rows)', 4), diff --git a/packages/react/src/components/TextArea/next/TextArea.stories.js b/packages/react/src/components/TextArea/next/TextArea.stories.js index e9f8cac025bb..b2da679c13b8 100644 --- a/packages/react/src/components/TextArea/next/TextArea.stories.js +++ b/packages/react/src/components/TextArea/next/TextArea.stories.js @@ -21,7 +21,6 @@ export const Default = () => (