Fix a bug that the checkbox doesn't toggle in "Code Sample using effects" in tutorials/Web/Using_Effects/README.md (#2014)

This commit is contained in:
Shreck Ye
2022-05-05 17:10:40 +08:00
committed by GitHub
parent 3221d7c306
commit cea96d4b56

View File

@@ -167,7 +167,7 @@ fun main() {
Text("Show/hide text rendered by 3rd party library")
}
CheckboxInput(checked = false) {
CheckboxInput(checked = showUncontrolledElements) {
id("checkbox")
onInput {
showUncontrolledElements = it.value