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