@descope/web-components-ui 3.10.0 → 3.10.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.
- package/dist/cjs/index.cjs.js +2 -3
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/descope-anchored.js +1 -1
- package/dist/umd/descope-anchored.js.map +1 -1
- package/dist/umd/descope-attachment.js +1 -1
- package/dist/umd/descope-attachment.js.map +1 -1
- package/dist/umd/descope-tooltip.js +1 -1
- package/dist/umd/descope-tooltip.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +35 -35
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -26972,8 +26972,6 @@ class RawAnchored extends createBaseClass$1({
|
|
|
26972
26972
|
`;
|
|
26973
26973
|
|
|
26974
26974
|
this.defaultSlot = this.shadowRoot.querySelector('slot:not([name])');
|
|
26975
|
-
|
|
26976
|
-
this.#syncComponentState();
|
|
26977
26975
|
}
|
|
26978
26976
|
|
|
26979
26977
|
init() {
|
|
@@ -27031,7 +27029,7 @@ class RawAnchored extends createBaseClass$1({
|
|
|
27031
27029
|
// To support conditional components in flow, we need to sync the 'hidden' className to the root of the component.
|
|
27032
27030
|
// Ideally, this would happen in the SDK, but we resolved to this patch to fix the issue without forcing users to update SDKs.
|
|
27033
27031
|
#syncComponentState() {
|
|
27034
|
-
const hasHidden = this.#anchor
|
|
27032
|
+
const hasHidden = this.#anchor?.classList?.contains('hidden');
|
|
27035
27033
|
this.classList.toggle('hidden', hasHidden);
|
|
27036
27034
|
}
|
|
27037
27035
|
|
|
@@ -27096,6 +27094,7 @@ class RawAnchored extends createBaseClass$1({
|
|
|
27096
27094
|
// empty host rather than reserving its layout box.
|
|
27097
27095
|
#onAnchorChanged() {
|
|
27098
27096
|
this.toggleAttribute('has-anchor', !!this.#anchor);
|
|
27097
|
+
this.#syncComponentState();
|
|
27099
27098
|
}
|
|
27100
27099
|
}
|
|
27101
27100
|
|