0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-22 06:32:38 -05:00

🐛 Remove negative values from the input in teh grid editor

This commit is contained in:
alonso.torres 2023-12-05 17:05:46 +01:00
parent 8b2ae380b0
commit e75fb67eec

View file

@ -664,6 +664,7 @@
(let [target (-> event dom/get-target)
value (-> target dom/get-input-value str/upper)
value-int (d/parse-integer value)
value-int (when value-int (max 0 value-int))
[track-type value]
(cond