Skip to content

Commit

Permalink
fix: code mirror does not disconnect properly (#2910)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev authored Jun 28, 2024
1 parent 2afe059 commit 17335f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/javascript/js/controllers/fields/code_field_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@ export default class extends Controller {
})
}, 1)
}

disconnect() {
this.element.querySelector('.CodeMirror').CodeMirror.toTextArea()
}
}

0 comments on commit 17335f9

Please sign in to comment.