Repository navigation
Commit 5eabc43
authored
fix(data-grid): fix inline number cell editing (#1073)
* fix(data-grid): fix NumberCell only allowing one character at a time
- Track isEditing transition with ref to only focus on edit start
- Remove select() call that was selecting all content on every keystroke
- type=number inputs don't support setSelectionRange, so just focus
* style(data-grid): hide number input spinner controls
Add CSS to hide browser default spinner/stepper buttons on number inputs
for a cleaner Airtable-like UX
* chore: orgnaize1 parent 6a801c5 commit 5eabc43
2 files changed
Lines changed: 11 additions & 5 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| 387 | + | |
387 | 388 | | |
388 | 389 | | |
389 | 390 | | |
390 | 391 | | |
391 | 392 | | |
392 | 393 | | |
| 394 | + | |
| 395 | + | |
393 | 396 | | |
394 | 397 | | |
395 | 398 | | |
| |||
449 | 452 | | |
450 | 453 | | |
451 | 454 | | |
452 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
453 | 460 | | |
454 | | - | |
455 | 461 | | |
456 | 462 | | |
457 | 463 | | |
| |||
473 | 479 | | |
474 | 480 | | |
475 | 481 | | |
476 | | - | |
477 | 482 | | |
| 483 | + | |
478 | 484 | | |
479 | 485 | | |
480 | 486 | | |
481 | 487 | | |
| 488 | + | |
482 | 489 | | |
483 | 490 | | |
484 | | - | |
485 | 491 | | |
486 | 492 | | |
487 | 493 | | |
| |||
0 commit comments