Weird behavior for certain buttons
- Dominant language
- Kotlin
- Stars
- 3k
- Forks
- 148
- Avg merge
- 13h 44m
- Merged PRs (30d)
- 1
Description
For the following code:
```
suspend fun main() = Korge() {
repeat(12) { //only happens for 12
text("Test")
}
val aText = text("")
uiButton(btnSize, btnSize) {
alignBottomToBottomOf(this@Korge, btnSize / 3)
alignLeftToLeftOf(this@Korge, btnSize / 3)
text = "test"
onClick {
aText.text = "Test"
}
}
uiButton(btnSize, btnSize) {
alignBottomToBottomOf(this@Korge, btnSize / 3)
alignRightToRightOf(this@Korge, btnSize / 3)
text = "test"
onClick {
aText.text = ""
}
}
}
```
clicking the button changes how the first button look


I tested this on Windows and Linux(arch with kde on x11) with jvm and js targets(Firefox and chromium), all with AMD graphics.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the supplied suspend fun main Korge example with repeat(12), two uiButton calls, and clicks on both buttons. Compare the first button before and after updating aText across the reported JVM and JS targets. Done means clicking either button no longer changes the first button's appearance unexpectedly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100