소스 검색

HUE-7470 [editor] Only check for risks when a snippet has focus

Johan Ahlen 8 년 전
부모
커밋
66c75d2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

+ 1 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -1051,7 +1051,7 @@ var EditorViewModel = (function() {
       });
 
       self.checkComplexity = function () {
-        if (lastCheckedComplexityStatement === self.statement()) {
+        if (!self.inFocus() || lastCheckedComplexityStatement === self.statement()) {
           return;
         }