Преглед изворни кода

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){