mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 05:31:22 -03:30
fix console error on hidden syntax-highlight directive
This commit is contained in:
parent
965dc79a0a
commit
62f31d6b3f
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user