🐛 Fix when editing a property name, the wrong property changes name (#6156)
Some checks are pending
Commit Message Check / Check Commit Message (push) Waiting to run

This commit is contained in:
Pablo Alba
2025-03-26 11:17:48 +01:00
committed by GitHub
parent f932f3efb1
commit 7284fb539f

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)}]]))])]])))