Explorar o código

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

Enrico Berti %!s(int64=9) %!d(string=hai) anos
pai
achega
61998134e4

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