Selaa lähdekoodia

LS segment click event bubbling issue fix

Vijayakrishnan 3 vuotta sitten
vanhempi
commit
4263e9ea78
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      resources/views/app/patient/note/dashboard_script.blade.php

+ 3 - 0
resources/views/app/patient/note/dashboard_script.blade.php

@@ -108,6 +108,9 @@
                 $(document)
                     .off('click.edit-trigger', '.edit-trigger:not(.edit)')
                     .on('click.edit-trigger', '.edit-trigger:not(.edit)', function() {
+
+                        if($('.note-section>.stag-popup:visible').length) return;
+
                         let editParent = $(this).closest('.note-section');
 
                         // TEMP: disable edit mode for medrisk_vigilance