Spot the bug in the singleton delegate

from Delegated properties
Kotlin 2.4.10 intermediate 4 min 1 issue to find

Each form field and each form must keep an independent value. Find the bug.

kotlin
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty

object SharedText : ReadWriteProperty<Any?, String> {
    private var value = ""

    override fun getValue(thisRef: Any?, property: KProperty<*>): String = value

    override fun setValue(thisRef: Any?, property: KProperty<*>, value: String) {
        this.value = value.trim()
    }
}

class ContactForm {
    var name: String by SharedText
    var city: String by SharedText
}
Open in playground
Report an error