react-spectrum
37273c53 - NumberField fixes (#1509)

Commit
4 years ago
NumberField fixes (#1509) * Fix double border between input and buttons * Fix disabled focus and hover states for stepper buttons * Update stepper disabled state as you type * Adjust behavior of step to match slider and native number input * Allow incrementing/decrementing values that are near the min/max step value * Replace "spin button number field" with just "number field" * Improve focus behavior for stepper buttons * Fix forward delete of plusSign * Fix typing minus sign in some locales * making focused invalid numberfield stay red * Fix issue where we couldn't type a negative number * giving proper padding right to valid/invalid/loadable quiet textfields moved the styles so they are more specific than the isQuiet padding right styles * fixing numberfield quiet mobile stepper button active styles * Implement fallback support for reverting invalid composition events For browsers that don't support input events level 2 * Fix typing symbols from non-default numbering systems e.g. latin decimal point in arabic * Support normal negative numbers in accounting format * Remove horizontal scrolling as an incr/decr method * fix react 17 * Make active state go around full component rather than just input on touch * Set inputMode according to the OS * Fix sign display polyfill with number parser in Safari * Numberfield fixes: remove aria-roledescription on iOS and replace hyphen with minus sign (#1517) * Slight cleanup and add comment about minus sign Co-authored-by: Rob Snow <rsnow@adobe.com> Co-authored-by: Daniel <dlu@livefyre.com> Co-authored-by: Michael Jordan <mijordan@adobe.com>
Author
Parents
Loading