mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-26 18:53:35 -05:00
fix console error on hidden syntax-highlight directive
This commit is contained in:
@@ -35,6 +35,9 @@ function atSyntaxHighlightController ($scope, AngularCodeMirror) {
|
||||
scrollbarStyle: null,
|
||||
}
|
||||
});
|
||||
if (document.querySelector(`.ng-hide #${$scope.name}_codemirror`)) {
|
||||
return;
|
||||
}
|
||||
codeMirror.showTextArea({
|
||||
scope: $scope,
|
||||
model: varName,
|
||||
|
||||
Reference in New Issue
Block a user