mirror of
https://github.com/penpot/penpot.git
synced 2026-04-11 21:58:38 +02:00
* 🐛 Fix non-integer row/column values in grid cell position inputs The numeric-input component allows Alt+arrow key increments of 0.1x the step value, which could produce float values (e.g. 4.5, 0.5) when users adjusted grid cell row/column/row-span/column-span positions. The schema requires these fields to be integers, causing backend validation errors. Round the input values to integers in the on-grid-coordinates callback before passing them to update-grid-cell-position. Signed-off-by: Andrey Antukh <niwi@niwi.nz> * 🐛 Enforce integer-only values in grid cell numeric inputs Add an `integer` prop to the legacy `numeric-input*` component that rounds parsed values in `parse-value`, ensuring all input paths (typed text, arrow keys, Alt+arrow, mouse wheel, expressions) produce integers. Use it for all six row/column inputs in the grid cell options panel. Signed-off-by: Andrey Antukh <niwi@niwi.nz> --------- Signed-off-by: Andrey Antukh <niwi@niwi.nz>