From 7a9776cc43a9fda2db245735d74a57cd2a57834f Mon Sep 17 00:00:00 2001 From: Shreck Ye Date: Mon, 14 Feb 2022 19:39:03 +0800 Subject: [PATCH] web: make `applyAttrs` in the second overloaded `TagElement` nullable to be consistent with the first one (#1814) --- .../jsMain/kotlin/org/jetbrains/compose/web/elements/Base.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/elements/Base.kt b/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/elements/Base.kt index 0cebc82819..3b117ec054 100644 --- a/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/elements/Base.kt +++ b/web/core/src/jsMain/kotlin/org/jetbrains/compose/web/elements/Base.kt @@ -152,7 +152,7 @@ fun TagElement( @ExperimentalComposeWebApi fun TagElement( tagName: String, - applyAttrs: AttrsScope.() -> Unit, + applyAttrs: (AttrsScope.() -> Unit)?, content: (@Composable ElementScope.() -> Unit)? ) = TagElement( elementBuilder = ElementBuilder.createBuilder(tagName),