Update htmlx, update version

This commit is contained in:
2020-02-15 12:09:01 +01:00
parent c798636064
commit 12628f02f7
3 changed files with 10 additions and 4 deletions

View File

@@ -11,7 +11,11 @@ import kotlin.browser.document
public typealias CssStyle = CSSStyleDeclaration.() -> Unit
fun Tag.include(component: Komponent) {
component.update()
if (component.element != null) {
component.update()
} else {
component.refresh()
}
val consumer = this.consumer
val element = component.element