소스 검색

HUE-4711 [impala] Error highlighting does not work with multiquery

Enrico Berti 9 년 전
부모
커밋
61998134e4
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 4 - 1
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -3043,9 +3043,12 @@
         }
       });
 
+      editor.on("click", function (e) {
+        editor.clearErrors();
+      });
+
       editor.on("change", function (e) {
         snippet.statement_raw(removeUnicodes(editor.getValue()));
-        editor.clearErrors();
         editor.session.getMode().$id = snippet.getAceMode();
         var currentSize = editor.session.getLength();
         if (currentSize != editor.previousSize && currentSize >= editorOptions.minLines && currentSize <= editorOptions.maxLines){