Просмотр исходного кода

calendar: clear res editing state on selection change

ZiB 4 месяцев назад
Родитель
Сommit
8c61d67a69
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      room_cal/vue/calendar.html

+ 6 - 0
room_cal/vue/calendar.html

@@ -1687,6 +1687,12 @@ createApp({
     }
 
     watch(selection, (sel) => {
+      editingDoorCode.value = null;
+      editingWifiKey.value  = null;
+      editingWifiSsid.value = null;
+      resDoorState.value    = null;
+      resKeyState.value     = null;
+      resSsidState.value    = null;
       if (sel?.type === 'res' && sel.chat_id && selectionSupportsChat.value) {
         chatThread.value    = null;
         chatError.value     = null;