Skip to content

Commit

Permalink
web: make applyAttrs in the second overloaded TagElement nullable…
Browse files Browse the repository at this point in the history
… to be consistent with the first one (#1814)
  • Loading branch information
ShreckYe committed Feb 14, 2022
1 parent a528838 commit 7a9776c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -152,7 +152,7 @@ fun <TElement : Element> TagElement(
@ExperimentalComposeWebApi
fun <TElement : Element> TagElement(
tagName: String,
applyAttrs: AttrsScope<TElement>.() -> Unit,
applyAttrs: (AttrsScope<TElement>.() -> Unit)?,
content: (@Composable ElementScope<TElement>.() -> Unit)?
) = TagElement(
elementBuilder = ElementBuilder.createBuilder(tagName),
Expand Down

0 comments on commit 7a9776c

Please sign in to comment.