Commit 3a6d3bd
authored
fix(ui): crop width and height inputs limited to -1 of max (#15101)
### What
Crop width/height inputs can now be incremented to the original image
dimensions
### Why
Users were unable to increment crop dimensions back to the full original
size using arrow keys. The inputs would max out at `originalSize - 1`,
even though typing the max value directly worked fine.
### How
Removed redundant pixel-based validation in `fineTuneCrop` that was
blocking state updates when dimensions equaled the original size. The
percentage-based validation already handles invalid values (≤0% and
>100%).
Fixes #147581 parent 6025eff commit 3a6d3bd
File tree
2 files changed
+29
-7
lines changed- packages/ui/src/elements/EditUpload
- test/uploads
2 files changed
+29
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 116 | | |
123 | 117 | | |
124 | 118 | | |
125 | 119 | | |
126 | | - | |
| 120 | + | |
127 | 121 | | |
128 | 122 | | |
129 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1549 | 1549 | | |
1550 | 1550 | | |
1551 | 1551 | | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
1552 | 1580 | | |
1553 | 1581 | | |
1554 | 1582 | | |
| |||
0 commit comments