vira 28.19.3 → 28.19.4

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.
@@ -51,21 +51,8 @@ export class PopUpManager {
51
51
  this.navController = navController;
52
52
  this.options = { ...this.options, ...options };
53
53
  }
54
- attachGlobalListeners(container) {
55
- let firstFired = false;
56
- const resizeObserver = new ResizeObserver(() => {
57
- if (firstFired) {
58
- this.removePopUp();
59
- }
60
- else {
61
- firstFired = true;
62
- }
63
- });
64
- resizeObserver.observe(container);
54
+ attachGlobalListeners() {
65
55
  this.cleanupCallbacks = [
66
- () => {
67
- resizeObserver.disconnect();
68
- },
69
56
  listenToPageActivation(false, (isPageActive) => {
70
57
  if (!isPageActive) {
71
58
  this.removePopUp();
@@ -192,7 +179,7 @@ export class PopUpManager {
192
179
  diff.bottom < currentOptions.minDownSpace;
193
180
  const useLeft = diff.left > diff.right + currentOptions.horizontalDiffThreshold &&
194
181
  diff.right < currentOptions.minRightSpace;
195
- this.attachGlobalListeners(container);
182
+ this.attachGlobalListeners();
196
183
  return {
197
184
  popDown: !useUp,
198
185
  popRight: !useLeft,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vira",
3
- "version": "28.19.3",
3
+ "version": "28.19.4",
4
4
  "description": "A simple and highly versatile design system using element-vir.",
5
5
  "keywords": [
6
6
  "design",