Ensure Radial is fully closed

This commit is contained in:
ingalls
2025-12-15 21:51:21 -07:00
parent 3ee922ed06
commit c518d773b3
3 changed files with 3 additions and 7 deletions

View File

@@ -125,7 +125,7 @@
</template>
<script setup>
import { ref, onMounted, onUnmounted, nextTick, useTemplateRef } from 'vue';
import { ref, onMounted, nextTick, useTemplateRef } from 'vue';
import { OriginMode } from '../../../base/cot.ts';
import Subscription from '../../../base/subscription.ts';
import RadialMenu from './RadialMenu.js';
@@ -147,10 +147,6 @@ const menuRef = useTemplateRef('radial-menu');
const menuItems = ref([]);
const menu = ref();
onUnmounted(() => {
emit('close')
});
onMounted(async () => {
await genMenuItems();

View File

@@ -51,9 +51,8 @@ onMounted(() => {
.addTo(mapStore.map);
popup.on('close', () => {
if (mapStore.select.feats) {
if (mapStore.select.feats.length) {
mapStore.select.feats = [];
popup.remove();
}
});
});

View File

@@ -594,6 +594,7 @@ export const useMapStore = defineStore('cloudtak', {
if (this.radial.mode) {
// Clicking away closes the radial menu
this.radial.mode = undefined;
this.radial.cot = undefined;
return;
}