react-spectrum
ad0fb49b - Fix useNumberField to propagate name/placeholder props (#2884)

Commit
3 years ago
Fix useNumberField to propagate name/placeholder props (#2884) * Fixed bug where useNumberField was swallowing the name and placeholder props, added support to pass/use select additional props from TextInputDOMProps as well * Added jest tests for added functionality in useNumberField * Added back newline/spacing in call to useFormattedTextField * Addressing PR comments - moved input DOM events into a separate interface, removed support for name prop to useNumberField, updated Storybook/tests * Addressing PR comments - updated useNumberField.test to include test and code change recommended/provided in PR Co-authored-by: Robert Snow <rsnow@adobe.com> Co-authored-by: Daniel Lu <dl1644@gmail.com>
Author
Parents
Loading