Skip to content
This repository was archived by the owner on Aug 10, 2024. It is now read-only.

Commit 6b59491

Browse files
committed
fix minor bug with rendering of text()
1 parent 14a72c8 commit 6b59491

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ext {
2525
}
2626

2727
group 'com.github.kwebio'
28-
version '0.11.6'
28+
version '0.12.1'
2929

3030
repositories {
3131
mavenCentral()

src/main/kotlin/kweb/Element.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -407,13 +407,13 @@ open class Element(
407407
//language=JavaScript
408408
val setTextJS = """document.getElementById({}).textContent = {};""".trimIndent()
409409
when {
410-
browser.isCatchingOutbound() != null -> {
411-
callJsFunction(setTextJS, id.json, JsonPrimitive(value))
412-
}
413410
jsoupDoc != null -> {
414411
val element = jsoupDoc.getElementById(this.id)
415412
element!!.text(value)
416413
}
414+
browser.isCatchingOutbound() != null -> {
415+
callJsFunction(setTextJS, id.json, JsonPrimitive(value))
416+
}
417417
else -> {
418418
callJsFunction(setTextJS, id.json, JsonPrimitive(value))
419419
}

0 commit comments

Comments
 (0)