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