Skip to content

Commit

Permalink
[5.x] Fix Code fieldtype not removing the overflow hidden style on bo…
Browse files Browse the repository at this point in the history
…dy when closing Fullscreen Mode (#10221)

Fix Code fieldtype not removing the overflow hidden style on body when closing Fullscreen Mode

Closes #10208
  • Loading branch information
jackmcdade authored May 29, 2024
1 parent e9d25cc commit 1ad2fb3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/js/components/fieldtypes/CodeFieldtype.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ export default {
this.codemirror.setOption('fullScreen', this.fullScreenMode);
if (this.fullScreenMode === false) {
document.documentElement.removeAttribute('style');
}
// CodeMirror also needs to be manually refreshed when made visible in the DOM
this.$events.$on('tab-switched', this.refresh);
}
Expand Down

0 comments on commit 1ad2fb3

Please sign in to comment.