mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 22:10:34 +00:00
When the variant property panel went away (selecting another layer), input-with-meta* sent a blur from the last input it had rendered, to commit an edit still open. After an edit was already committed that input is gone and keeps the text it had: reordering the properties and then selecting a variant renamed the property now in that row after the old one, "Property 1" becoming "Property 2 (1)" (PENPOT-2588). The input is forgotten once its edit is committed, so the blur is sent only for an edit still open. ds-input-with-meta-test mounts the component in a jsdom document: a committed edit is not sent again when the value changes and the input goes away; an edit still open is committed. AI-assisted-by: claude-opus-5-5