Skip to content

Commit 275cc61

Browse files
committed
[components] Fix onBlur error (#137)
1 parent 56b4bd3 commit 275cc61

File tree

1 file changed

+3
-1
lines changed
  • packages/@sanity/components/src/toggles

1 file changed

+3
-1
lines changed

packages/@sanity/components/src/toggles/Switch.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ export default class Switch extends React.Component {
1414
}
1515

1616
static defaultProps = {
17-
onChange() {}
17+
onChange() {},
18+
onBlur() {},
19+
onFocus() {}
1820
}
1921

2022
handleMouseUp = event => {

0 commit comments

Comments
 (0)