From 766e5950de10e972453b198aba86255bb5b62895 Mon Sep 17 00:00:00 2001 From: Philip Wedemann <22521688+hfhbd@users.noreply.github.com> Date: Mon, 21 Jun 2021 18:05:21 +0200 Subject: [PATCH] web: Remove the boolean parameter from hidden() to align with #780 (#783) https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden --- .../kotlin/androidx/compose/web/attributes/AttrsBuilder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)