# Code editor caret bug 6.0.4

**URL:** <https://forum.juce.com/t/code-editor-caret-bug-6-0-4/42652>\
**Category:** General JUCE discussion\
**Created:** [November 9, 2020, 7:52pm UTC](https://forum.juce.com/t/code-editor-caret-bug-6-0-4/42652 "2020-11-09T19:52:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![huddink](https://avatars.discourse-cdn.com/v4/letter/h/e480ec/32.png) [@huddink](https://forum.juce.com/u/huddink)\
**Post date:** [November 9, 2020, 7:52pm UTC](https://forum.juce.com/t/code-editor-caret-bug-6-0-4/42652/1 "2020-11-09T19:52:56Z")

</div>

Hello, looks like a bug with the code editor caret.

You can reproduce in the demo; when you change tab from ‘demo’ to ‘code’ and then back again, the caret component will disappear.

* * *

Seems to be because the caret is now created from a call to lookAndFeelChanged()
