@thinkpixellab-public/px-vue 3.0.30 → 3.0.32
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/components/PxFloat.vue
CHANGED
|
@@ -285,9 +285,15 @@ export default {
|
|
|
285
285
|
this.updatePosition(reference, popup);
|
|
286
286
|
|
|
287
287
|
if (this.autoUpdate) {
|
|
288
|
-
|
|
289
|
-
this.
|
|
290
|
-
|
|
288
|
+
if (reference) {
|
|
289
|
+
this.cleanup = autoUpdate(reference, popup, () =>
|
|
290
|
+
this.updatePosition(reference, popup)
|
|
291
|
+
);
|
|
292
|
+
} else {
|
|
293
|
+
console.warn(
|
|
294
|
+
'Cannot autoupdate float because no reference was provided.'
|
|
295
|
+
);
|
|
296
|
+
}
|
|
291
297
|
}
|
|
292
298
|
} else {
|
|
293
299
|
if (this.cleanup) {
|
package/package.json
CHANGED