We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6f1f6e commit ecb47dfCopy full SHA for ecb47df
src/packages/switch/switch.taro.tsx
@@ -60,9 +60,9 @@ export const Switch: FunctionComponent<Partial<TaroSwitchProps>> = (props) => {
60
61
const onClick = () => {
62
if (disabled || changing) return
63
- if (props.onChange) {
+ if (onChange) {
64
setChanging(true)
65
- props.onChange(!value)
+ onChange(!value)
66
}
67
setValue(!value)
68
src/packages/switch/switch.tsx
@@ -58,9 +58,9 @@ export const Switch: FunctionComponent<Partial<WebSwitchProps>> = (props) => {
58
59
0 commit comments