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.
disabled
1 parent 5eec3fe commit c2baf11Copy full SHA for c2baf11
compose-html-common/src/jsMain/kotlin/com/huanshankeji/compose/web/attributes/ext/Attrs.kt
@@ -29,9 +29,8 @@ fun AttrsScope<*>.ariaLabel(value: String) =
29
30
// https://www.w3schools.com/tags/att_disabled.asp
31
// https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled
32
-fun AttrsScope<*>.disabled(disabled: Boolean?) {
33
- disabled?.let { disabled(it) }
34
-}
+fun AttrsScope<*>.disabled(value: Boolean?) =
+ attrIfNotNull("disabled", value)
35
36
// https://www.w3schools.com/tags/att_href.asp
37
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#href
0 commit comments