8.1.3

mantinedev/mantine8.1.3Jul 7, 2025by rtivital

AI Summary

Focuses on form handling improvements, date picker fixes, and ensuring React 18 compatibility across various hooks and components.

Key Highlights

  • Added `defaultDate` prop support to DateTimePicker
  • Added `keepMounted` prop support to Collapse
  • Fixed React 18 compatibility in use-move hook
  • Fixed form.resetField not updating DOM in uncontrolled mode
  • Fixed SubMenu visual arrow offset

New Features

  • DateTimePicker defaultDate prop
  • Collapse keepMounted prop
  • Form watch callbacks for nested fields
  • use-debounced-callback leading behavior fix
  • DatePickerInput size consistency
  • Checkbox/Radio/Slider disabled border color fix

Full Release Notes

## What's Changed
- `[@mantine/core]` Container: Fix base responsive props value not being handled correctly (#8054)
- `[@mantine/form]` Fix type errors with read only array types (#7950)
- `[@mantine/core]` Fix incorrect disabled border color of Checkbox, Radio and Slider (#8053)
- `[@mantine/core]` Combobox: Fix `aria-expanded` attribute not being assigned correctly to combobox target
- `[@mantine/core]` Menu: Fix SubMenu having visual arrow offset when default props are set for Popover on theme (#8027)
- `[@mantine/form]` Fix `form.resetField` not updating DOM with `mode: 'uncontrolled'` (#8050)
- `[@mantine/form]` Add option to trigger `watch` callbacks when nested field value changes (#8026)
- `[@mantine/hooks]` use-move: Fix React 18 compatibility (#8018)
- `[@mantine/dates]` DateTimePicker: Add `defaultDate` prop support (#8023)
- `[@mantine/dates]` DatePickerInput: Fix `size="xs` being slightly different from other inputs
- `[@mantine/dates]` TimePicker: Fix dropdown being visible even when `withDropdown={false}` is set
- `[@mantine/core]` Popover: Fix `onClick` not firing on the child of Popover.Target
- `[@mantine/spotlight]` Fix incorrect `query` prop with empty string handling
- `[@mantine/core]` Text: Fix autocomplete not working for `size` prop
- `[@mantine/hooks]` use-debounced-callback: Fix incorrect `leading` behavior (#8021)
- `[@mantine/core]` Collapse: Add `keepMounted` prop support (#8013)
- `[@mantine/date]` TimePicker: Fix `disabled` and `readOnly` props not working (#8011)

## New Contributors
* @Retwix made their first contribution in https://github.com/mantinedev/mantine/pull/8032
* @crehard made their first contribution in https://github.com/mantinedev/mantine/pull/8018
* @erwijet made their first contribution in https://github.com/mantinedev/mantine/pull/8026
* @evantrimboli made their first contribution in https://github.com/mantinedev/mantine/pull/7950

**Full Changelog**: https://github.com/mantinedev/mantine/compare/8.1.2...8.1.3