@limetech/lime-elements 37.63.4 → 37.63.6

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/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ## [37.63.6](https://github.com/Lundalogik/lime-elements/compare/v37.63.5...v37.63.6) (2024-10-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+
7
+ * **picker:** cancel debounced search when disconnected ([359aae6](https://github.com/Lundalogik/lime-elements/commit/359aae633fe27eed848fb70ebac8a823d489928d))
8
+ * **portal:** avoid creating or showing things when disconnected ([95305af](https://github.com/Lundalogik/lime-elements/commit/95305af5edaeece86b0943750130bcecd94c3fef))
9
+
10
+ ## [37.63.5](https://github.com/Lundalogik/lime-elements/compare/v37.63.4...v37.63.5) (2024-10-22)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+
16
+ * **picker:** clear search when picking a value and multiple is true ([6764895](https://github.com/Lundalogik/lime-elements/commit/676489511614f69bcebf7cd9a9dba8ec932bae25)), closes [#3188](https://github.com/Lundalogik/lime-elements/issues/3188)
17
+
1
18
  ## [37.63.4](https://github.com/Lundalogik/lime-elements/compare/v37.63.3...v37.63.4) (2024-10-22)
2
19
 
3
20
 
@@ -2016,9 +2016,10 @@ const Portal = class {
2016
2016
  disconnectedCallback() {
2017
2017
  this.removeContainer();
2018
2018
  this.destroyPopper();
2019
- if (this.observer) {
2019
+ if (this.observer && this.container) {
2020
2020
  this.observer.unobserve(this.container);
2021
2021
  }
2022
+ this.container = null;
2022
2023
  }
2023
2024
  connectedCallback() {
2024
2025
  if (!this.loaded) {
@@ -2033,6 +2034,9 @@ const Portal = class {
2033
2034
  this.connectedCallback();
2034
2035
  }
2035
2036
  init() {
2037
+ if (!this.host.isConnected) {
2038
+ return;
2039
+ }
2036
2040
  this.createContainer();
2037
2041
  this.hideContainer();
2038
2042
  this.attachContainer();
@@ -2057,6 +2061,7 @@ const Portal = class {
2057
2061
  onVisible() {
2058
2062
  if (!this.container && this.visible) {
2059
2063
  this.init();
2064
+ return;
2060
2065
  }
2061
2066
  if (!this.visible) {
2062
2067
  this.animateHideAndCleanup();