Skip to content

Commit

Permalink
fix(content-switcher): provide empty default onChange prop (#6945)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
janhassel and kodiakhq[bot] authored Oct 5, 2020
1 parent 6524d6e commit 6e2a519
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@ Map {
},
"ContentSwitcher" => Object {
"defaultProps": Object {
"onChange": [Function],
"selectedIndex": 0,
"selectionMode": "automatic",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default class ContentSwitcher extends React.Component {
static defaultProps = {
selectedIndex: 0,
selectionMode: 'automatic',
onChange: () => {},
};

static getDerivedStateFromProps({ selectedIndex }, state) {
Expand Down

0 comments on commit 6e2a519

Please sign in to comment.