浏览代码

Plan/review - shortcuts - moe disappears on click

Vijayakrishnan 3 年之前
父节点
当前提交
821ef88424
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      resources/views/app/patient/note/segment_script.blade.php

+ 5 - 1
resources/views/app/patient/note/segment_script.blade.php

@@ -167,7 +167,11 @@
             $('body')
                 .off('mousedown.visit-moe-outside-click')
                 .on('mousedown.visit-moe-outside-click', function (e) {
-                    if ($(e.target).closest('[visit-moe]').length) {
+                    if ($(e.target).closest('[visit-moe]').length ||
+                        $(e.target).closest('#create-shortcut-form').length ||
+                        $(e.target).is('#create-shortcut-form') ||
+                        $(e.target).is('.stag-shortcuts .sc') ||
+                        $(e.target).closest('.ui-datepicker').length) {
                         return;
                     }
                     $('[visit-moe] [url]:not([show])').hide();