diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/AttrsBuilder.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/AttrsBuilder.kt index 2fc7a78283..9df4554d9b 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/AttrsBuilder.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/attributes/AttrsBuilder.kt @@ -21,7 +21,7 @@ class AttrsBuilder : EventsListenerBuilder() { fun classes(vararg classes: String) = prop(setClassList, classes) fun id(value: String) = attr(ID, value) - fun hidden(value: Boolean) = attr(HIDDEN, value.toString()) + fun hidden() = attr(HIDDEN, true.toString()) fun title(value: String) = attr(TITLE, value) fun dir(value: DirType) = attr(DIR, value.dirStr) fun draggable(value: Draggable) = attr(DRAGGABLE, value.str)