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

Commit

Permalink
Fix bug that would cause new elements to be inserted at the wrong pos…
Browse files Browse the repository at this point in the history
…ition.
  • Loading branch information
Derek52 committed May 25, 2021
1 parent 8f24cba commit 21d3630
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ext {
}

group 'com.github.kwebio'
version '0.9.9'
version '0.9.10'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/kweb/ElementCreator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ open class ElementCreator<out PARENT_TYPE : Element>(
}
""".trimIndent()
parent.callJsFunction(createElementJs, JsonPrimitive(tag), JsonObject(mutAttributes), JsonPrimitive(id),
JsonPrimitive(parent.id), JsonPrimitive(parent.id))
JsonPrimitive(parent.id), JsonPrimitive(position))
}
}
val newElement = Element(parent.browser, this, tag = tag, id = id)
Expand Down

0 comments on commit 21d3630

Please sign in to comment.