@limetech/lime-elements 37.61.0 → 37.61.2

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.
@@ -1994,7 +1994,7 @@ var createPopper = /*#__PURE__*/popperGenerator({
1994
1994
  defaultModifiers: defaultModifiers
1995
1995
  }); // eslint-disable-next-line import/no-unused-modules
1996
1996
 
1997
- const portalCss = ":host(limel-portal){display:block;position:absolute;top:0;bottom:0;width:100%;pointer-events:none}:host([hidden]){display:none}";
1997
+ const portalCss = ":host(limel-portal){display:block;position:absolute;top:0;bottom:0;width:100%;pointer-events:none}:host([hidden]){display:none}slot{display:none}";
1998
1998
 
1999
1999
  const Portal = class {
2000
2000
  constructor(hostRef) {
@@ -2021,6 +2021,15 @@ const Portal = class {
2021
2021
  if (!this.loaded) {
2022
2022
  return;
2023
2023
  }
2024
+ if (this.visible) {
2025
+ this.init();
2026
+ }
2027
+ }
2028
+ componentDidLoad() {
2029
+ this.loaded = true;
2030
+ this.connectedCallback();
2031
+ }
2032
+ init() {
2024
2033
  this.createContainer();
2025
2034
  this.hideContainer();
2026
2035
  this.attachContainer();
@@ -2039,14 +2048,13 @@ const Portal = class {
2039
2048
  observer.observe(this.container);
2040
2049
  }
2041
2050
  }
2042
- componentDidLoad() {
2043
- this.loaded = true;
2044
- this.connectedCallback();
2045
- }
2046
2051
  render() {
2047
2052
  return index.h("slot", null);
2048
2053
  }
2049
2054
  onVisible() {
2055
+ if (!this.container && this.visible) {
2056
+ this.init();
2057
+ }
2050
2058
  if (!this.visible) {
2051
2059
  this.hideContainer();
2052
2060
  this.styleContainer();