@zag-js/color-picker 0.81.2 → 0.82.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1141,7 +1141,7 @@ function machine(userContext) {
1141
1141
  },
1142
1142
  activities: {
1143
1143
  trackPositioning(ctx2) {
1144
- ctx2.currentPlacement = ctx2.positioning.placement;
1144
+ ctx2.currentPlacement || (ctx2.currentPlacement = ctx2.positioning.placement);
1145
1145
  const anchorEl = dom.getTriggerEl(ctx2);
1146
1146
  const getPositionerEl = () => dom.getPositionerEl(ctx2);
1147
1147
  return popper.getPlacement(anchorEl, getPositionerEl, {
package/dist/index.mjs CHANGED
@@ -1139,7 +1139,7 @@ function machine(userContext) {
1139
1139
  },
1140
1140
  activities: {
1141
1141
  trackPositioning(ctx2) {
1142
- ctx2.currentPlacement = ctx2.positioning.placement;
1142
+ ctx2.currentPlacement || (ctx2.currentPlacement = ctx2.positioning.placement);
1143
1143
  const anchorEl = dom.getTriggerEl(ctx2);
1144
1144
  const getPositionerEl = () => dom.getPositionerEl(ctx2);
1145
1145
  return getPlacement(anchorEl, getPositionerEl, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/color-picker",
3
- "version": "0.81.2",
3
+ "version": "0.82.0",
4
4
  "description": "Core logic for the color-picker widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -27,14 +27,14 @@
27
27
  "url": "https://github.com/chakra-ui/zag/issues"
28
28
  },
29
29
  "dependencies": {
30
- "@zag-js/core": "0.81.2",
31
- "@zag-js/anatomy": "0.81.2",
32
- "@zag-js/dom-query": "0.81.2",
33
- "@zag-js/dismissable": "0.81.2",
34
- "@zag-js/utils": "0.81.2",
35
- "@zag-js/color-utils": "0.81.2",
36
- "@zag-js/popper": "0.81.2",
37
- "@zag-js/types": "0.81.2"
30
+ "@zag-js/core": "0.82.0",
31
+ "@zag-js/anatomy": "0.82.0",
32
+ "@zag-js/dom-query": "0.82.0",
33
+ "@zag-js/dismissable": "0.82.0",
34
+ "@zag-js/utils": "0.82.0",
35
+ "@zag-js/color-utils": "0.82.0",
36
+ "@zag-js/popper": "0.82.0",
37
+ "@zag-js/types": "0.82.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "clean-package": "2.2.0"