diff --git a/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Base.kt b/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Base.kt index 7e703b8367..d33107eb45 100644 --- a/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Base.kt +++ b/web/core/src/jsMain/kotlin/androidx/compose/web/elements/Base.kt @@ -99,7 +99,7 @@ private object DomProvider { } private open class ElementBuilderImplementation(private val tagName: String) : ElementBuilder { - override fun create(): TElement = DomProvider.get(tagName).cloneNode() as TElement + override fun create(): TElement = DomProvider.get(tagName).cloneNode().unsafeCast() } fun interface ElementBuilder {