Skip to content

Commit

Permalink
dep v bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mvysny committed Jan 31, 2025
1 parent 59bf900 commit a87129b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
slf4j = "2.0.16"
kaributools = "0.23"
kaributools = "0.24"
karibudsl = "2.2.0"
junit5 = "5.11.0"
# Check the newest Vaadin version at https://github.com/vaadin/platform/tags
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.github.mvysny.kaributesting.v10

import com.github.mvysny.kaributools.template
import com.github.mvysny.kaributools.textRecursively
import com.github.mvysny.kaributools.valueProvider
import com.vaadin.flow.component.Component
Expand Down Expand Up @@ -32,11 +33,7 @@ public fun <T> Renderer<T>._getPresentationValue(rowObject: T): String? = when {
component.toPrettyString()
}
this is LitRenderer -> {
// LitRenderer re-declares private members
val templateProperty = this::class.java.getDeclaredField("templateExpression")
templateProperty.isAccessible = true
val templateExpression = templateProperty.get(this) as String
val renderedLitTemplateHtml: String = renderLitTemplate(templateExpression, valueProviders, rowObject)
val renderedLitTemplateHtml: String = renderLitTemplate(template, valueProviders, rowObject)
Jsoup.parse(renderedLitTemplateHtml).textRecursively
}
else -> null
Expand Down

0 comments on commit a87129b

Please sign in to comment.