7.8.1
mantinedev/mantine7.8.1Apr 23, 2024by rtivital
AI Summary
Bug fixes addressing issues introduced in the uncontrolled form mode, specifically regarding `form.key()` usage, DatePicker state, and cursor positioning in NumberInput.
Key Highlights
- Fix for uncontrolled form mode requiring `form.key()` function usage
- Fix DatePicker date range getting stuck in incorrect state
- Radio.Group now allows `null` to be passed to clear the value
- Fix NumberInput incorrect cursor position when backspace is pressed
Full Release Notes
## Notes Note that if you've already started using uncontrolled form mode introduced in 7.8.0, you need to include `form.key()` as described in the documentation. ## What's Changed - `[@mantine/form]` Add `defaultValue` to `form.getInputProps` return type - `[@mantine/form]` Replace `key` spread with `form.getInputProps` with `form.key()` function - `[@mantine/dropzone]` Fix keyboard activation not working (#6095) - `[@mantine/dates]` DatePicker: Fix date range being stuck in incorrect state when controlled state changes to an empty value (#6092) - `[@mantine/core]` Radio: Allow `null` to be passed to Radio.Group value to clear the value (#6102) - `[@mantine/core]` NumberInput: Fix incorrect cursor position when backspace is pressed (#6072) - `[@mantine/core]` Fix incorrect empty string handling in style props (#6078) ## New Contributors * @kgarner7 made their first contribution in https://github.com/mantinedev/mantine/pull/6064 **Full Changelog**: https://github.com/mantinedev/mantine/compare/7.8.0...7.8.1