Skip to content

Commit ac0dfee

Browse files
committed
fix: switch example
1 parent 4d8917f commit ac0dfee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/ui/switch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ For additional inherited properties, refer to the [API Reference](/api/class/Swi
9393
```ts
9494
on('checkedChange', (args: PropertyChangeData) => {
9595
const switch = args.object as Switch
96-
console.log('Switch checked:', args.value)
96+
console.log('Switch checked:', switch.checked)
9797
})
9898
```
9999

0 commit comments

Comments
 (0)