Skip to content

Commit

Permalink
Internet Explorer compatibility fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjaros committed Feb 9, 2018
1 parent 4c55364 commit 9966f82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ open class RichTextInput(value: String? = null, classes: Set<String> = 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
}

Expand Down
4 changes: 2 additions & 2 deletions src/test/kotlin/test/pl/treksoft/kvision/TestUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ package test.pl.treksoft.kvision

import org.w3c.dom.Element
import pl.treksoft.jquery.jQuery
import pl.treksoft.kvision.panel.Root
import pl.treksoft.kvision.core.Widget
import pl.treksoft.kvision.panel.Root
import kotlin.browser.document

interface TestSpec {
Expand Down Expand Up @@ -59,7 +59,7 @@ interface DomSpec : TestSpec {

override fun afterTest() {
val div = document.getElementById("pretest")
div?.remove()
div?.let { jQuery(it).remove() }
jQuery(`object` = ".modal-backdrop").remove()
}

Expand Down

0 comments on commit 9966f82

Please sign in to comment.