Skip to content

Commit

Permalink
docs: remove onStateChange property from ComboBox (#14648)
Browse files Browse the repository at this point in the history
  • Loading branch information
azizChebbi authored Sep 18, 2023
1 parent 1d12fb0 commit 1da457f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
3 changes: 0 additions & 3 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1292,9 +1292,6 @@ Map {
"onInputChange": Object {
"type": "func",
},
"onStateChange": Object {
"type": "func",
},
"onToggleClick": Object {
"type": "func",
},
Expand Down
5 changes: 0 additions & 5 deletions packages/react/src/components/ComboBox/ComboBox.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,6 @@ Playground.argTypes = {
disable: true,
},
},
onStateChange: {
table: {
disable: true,
},
},
onToggleClick: {
table: {
disable: true,
Expand Down
15 changes: 0 additions & 15 deletions packages/react/src/components/ComboBox/ComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,6 @@ export interface ComboBoxProps
*/
onInputChange?: (inputText: string) => void;

/**
* Helper function passed to Downshift that allows the user to observe internal
* state changes
* `(changes, stateAndHelpers) => void`
*/
onStateChange?: (changes: object, stateAndHelpers: object) => void;

/**
* Callback function that fires when the combobox menu toggle is clicked
* `(evt) => void`
Expand Down Expand Up @@ -293,7 +286,6 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
type: _type,
warn,
warnText,
onStateChange: _onStateChange,
...rest
} = props;
const prefix = usePrefix();
Expand Down Expand Up @@ -793,13 +785,6 @@ ComboBox.propTypes = {
*/
onInputChange: PropTypes.func,

/**
* Helper function passed to Downshift that allows the user to observe internal
* state changes
* `(changes, stateAndHelpers) => void`
*/
onStateChange: PropTypes.func,

/**
* Callback function that fires when the combobox menu toggle is clicked
* `(evt) => void`
Expand Down

0 comments on commit 1da457f

Please sign in to comment.