Minor Changes
-
83afd32Thanks
@segunadebayo! - FixspreadPropsreplacing the wholestyleattribute, which
wiped inline styles set on the element by other code (like the layer stack's--layer-indexor popper's--x/--y).normalizePropsandmergePropsnow returnstyleas an object instead of a CSS string, andspreadPropsapplies
it property by property. Use the exportedtoStyleStringif you need the string form.
Patch Changes
-
06be915Thanks
@segunadebayo! - Fixapi.setOpenignoring a second call made in the same tick.
setOpen(true)immediately followed bysetOpen(false)left the component open instead of closed, and only worked if
you awaited a microtask between the two calls.The last call in a tick now wins, and calling
setOpenrepeatedly with the same value still invokesonOpenChange
once. Drawer'sapi.setSnapPointhad the same problem and behaves the same way now. -
Updated dependencies [
06be915]:- @zag-js/core@1.44.0
- @zag-js/store@1.44.0
- @zag-js/types@1.44.0
- @zag-js/utils@1.44.0