diff --git a/shell/components/CodeMirror.vue b/shell/components/CodeMirror.vue index cdef2c8d02..b91f2f22fb 100644 --- a/shell/components/CodeMirror.vue +++ b/shell/components/CodeMirror.vue @@ -88,7 +88,7 @@ export default { // fixes https://github.com/rancher/dashboard/issues/13653 // we can't use the inert HTML prop on the parent because it disables all interaction - out.readOnly = this.isDisabled ? 'nocursor' : false; + out.readOnly = !!this.isDisabled; return out; }, @@ -227,8 +227,8 @@ export default { }, onFocus() { - this.isCodeMirrorFocused = true; - this.$emit('onFocus', true); + this.isCodeMirrorFocused = !this.isDisabled; + this.$emit('onFocus', this.isCodeMirrorFocused); }, onBlur() {