Skip to content

Commit 11c14f1

Browse files
committed
fix(ol-geolocation): prevent Extraneous non-emits event listeners warning
closes #219
1 parent 5ab6231 commit 11c14f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/map/OlGeoLocation.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ import type Polygon from "ol/geom/Polygon";
1818
import usePropsAsObjectProperties from "@/composables/usePropsAsObjectProperties";
1919
import { useOpenLayersEvents } from "@/composables/useOpenLayersEvents";
2020
21+
// prevent warnings caused by event pass-through via useOpenLayersEvents composable
22+
defineOptions({
23+
inheritAttrs: false,
24+
});
25+
2126
const props = withDefaults(defineProps<Options>(), {
2227
projection: "EPSG:3857",
2328
tracking: true,

0 commit comments

Comments
 (0)