Browse Source

web: make `applyAttrs` in the second overloaded `TagElement` nullable to be consistent with the first one (#1814)

pull/1843/head
Shreck Ye 3 years ago committed by GitHub
parent
commit
7a9776cc43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web/core/src/jsMain/kotlin/org/jetbrains/compose/web/elements/Base.kt

2
web/core/src/jsMain/kotlin/org/jetbrains/compose/web/elements/Base.kt

@ -152,7 +152,7 @@ fun <TElement : Element> TagElement(
@ExperimentalComposeWebApi @ExperimentalComposeWebApi
fun <TElement : Element> TagElement( fun <TElement : Element> TagElement(
tagName: String, tagName: String,
applyAttrs: AttrsScope<TElement>.() -> Unit, applyAttrs: (AttrsScope<TElement>.() -> Unit)?,
content: (@Composable ElementScope<TElement>.() -> Unit)? content: (@Composable ElementScope<TElement>.() -> Unit)?
) = TagElement( ) = TagElement(
elementBuilder = ElementBuilder.createBuilder(tagName), elementBuilder = ElementBuilder.createBuilder(tagName),

Loading…
Cancel
Save