From 9966f82dcbcf6df851ca088c4060ca8b1a981036 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 9 Feb 2018 20:22:17 +0100 Subject: Internet Explorer compatibility fix. --- src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/pl/treksoft/kvision') diff --git a/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt index ffdcc045..d90c5769 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/RichTextInput.kt @@ -89,8 +89,8 @@ open class RichTextInput(value: String? = null, classes: Set = setOf()) } override fun afterDestroy() { - document.getElementById("trix-input-" + trixId)?.remove() - document.getElementById("trix-toolbar-" + trixId)?.remove() + document.getElementById("trix-input-" + trixId)?.let { jQuery(it).remove() } + document.getElementById("trix-toolbar-" + trixId)?.let { jQuery(it).remove() } trixId = null } -- cgit