@afeefa/vue-app 0.0.307 → 0.0.308
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.308
|
package/package.json
CHANGED
|
@@ -95,12 +95,17 @@ export default class APopup extends Mixins(CancelOnEscMixin, UsesPositionService
|
|
|
95
95
|
const popups = this.getContainer().children
|
|
96
96
|
let foundMyself = false
|
|
97
97
|
for (const popup of popups) {
|
|
98
|
-
if (foundMyself) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
if (foundMyself && popup.contains(target)) {
|
|
99
|
+
return true
|
|
100
|
+
}
|
|
101
|
+
if (!foundMyself) {
|
|
102
|
+
// wenn ich selbst ein popup bin, sind alle weiteren möglichen popus
|
|
103
|
+
// immer kind-popups von mir, wenn ich dort scrolle/clicke, soll ich
|
|
104
|
+
// selbst also offen bleiben
|
|
105
|
+
// wenn ich selbst ein kind-popup bin soll ich bei scroll/click auf ein
|
|
106
|
+
// parent allerdings wieder selbst zugehen
|
|
107
|
+
foundMyself = popup === this.$el
|
|
102
108
|
}
|
|
103
|
-
foundMyself = popup === this.$el
|
|
104
109
|
}
|
|
105
110
|
return false
|
|
106
111
|
}
|