@oscarpalmer/oui 0.22.0 → 0.22.1

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.
@@ -91,7 +91,8 @@ function initialize(floatable) {
91
91
  anchor.setAttribute(ATTRIBUTE_ANCHOR, "");
92
92
  content.setAttribute(ATTRIBUTE_CONTENT, "");
93
93
  }
94
- const anchorName = getAnchorName();
94
+ let anchorName = anchor.style.anchorName;
95
+ if (anchorName.length === 0) anchorName = getAnchorName();
95
96
  anchor.style.anchorName = anchorName;
96
97
  content.style.position = "absolute";
97
98
  content.style.positionAnchor = anchorName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscarpalmer/oui",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "Styles, components, and utilities for building websites and applications.",
5
5
  "keywords": [
6
6
  "css",
@@ -206,7 +206,11 @@ function initialize(floatable: Floatable): void {
206
206
  content.setAttribute(ATTRIBUTE_CONTENT, '');
207
207
  }
208
208
 
209
- const anchorName = getAnchorName();
209
+ let anchorName = anchor.style.anchorName;
210
+
211
+ if (anchorName.length === 0) {
212
+ anchorName = getAnchorName();
213
+ }
210
214
 
211
215
  anchor.style.anchorName = anchorName;
212
216