Skip to content

Latest commit

 

History

History
85 lines (49 loc) · 4.44 KB

CHANGELOG.md

File metadata and controls

85 lines (49 loc) · 4.44 KB

@radix-ui/react-switch

1.4.1

  • Fixed a type regression where callback props that were previously declared as methods rejected handlers whose parameter is narrower than the prop's.

1.4.0

  • Allow explicit undefined for all optional types for compatibility with TypeScript's exactOptionalPropertyTypes flag.
  • Fixed bugs in form-nested control components where a user-driven change was treated as programmatic in some cases, preventing bubbled event handlers from being called.
  • Updated dependencies: @radix-ui/[email protected], @radix-ui/[email protected], @radix-ui/[email protected], @radix-ui/[email protected]

1.3.8

1.3.7

1.3.6

1.3.5

1.3.4

  • Improved tree-shaking so bundlers can drop unused components. Component parts are now marked /* @__PURE__ */ and use named render functions instead of Component.displayName = ... assignments, which previously prevented dead-code elimination with some bundlers.
  • Fixed a bug where updating a Checkbox, Switch, or RadioGroup value programmatically (eg. a "select all" control) while inside a <form> would dispatch a click event from the hidden bubble input that propagated to ancestor onClick handlers.
  • Updated dependencies: @radix-ui/[email protected], @radix-ui/[email protected], @radix-ui/[email protected], @radix-ui/[email protected], @radix-ui/[email protected], @radix-ui/[email protected]

1.3.3

  • Fixed a bug in form control components to ensure their values are updated when their associated form's is reset. This affects RadioGroup, Slider, Select, and Switch.
  • Updated dependencies: @radix-ui/[email protected], @radix-ui/[email protected]

1.3.2

1.3.1

1.3.0

1.2.6

1.2.5

  • Replace deprecated 'ElementRef' with 'ComponentRef' (#3426)
  • Updated dependencies: @radix-ui/[email protected]

1.2.4

1.2.3

1.2.2

1.2.1

1.2.0

  • All form controls with internal bubble inputs now use the Radix Primitive component by default. This will allow us to expose these components directly so users can better control this behavior in the future.
  • Minor improvements to useControllableState to enhance performance, reduce surface area for bugs, and log warnings when misused (#3455)
  • Updated dependencies: @radix-ui/[email protected], @radix-ui/[email protected]