0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-06 20:11:29 -05:00

🐛 Fix when editing a property name, the wrong property changes name (#6156)

This commit is contained in:
Pablo Alba 2025-03-26 11:17:48 +01:00 committed by GitHub
parent f932f3efb1
commit 7284fb539f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -850,11 +850,11 @@
[:div {:key (str (:id shape) pos) :class (stl/css :variant-property-row)}
[:> input-with-values* {:name (:name property)
:values val
:data-position (:pos property)
:data-position pos
:on-blur update-property-name}]
[:> icon-button* {:variant "ghost"
:aria-label (tr "workspace.shape.menu.remove-variant-property")
:on-click remove-property
:data-position (:pos property)
:data-position pos
:icon "remove"
:disabled (<= (count properties) 1)}]]))])]])))