# Text area background color change automatically

**URL:** <https://forum.inductiveautomation.com/t/text-area-background-color-change-automatically/46096>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [April 28, 2021, 8:13am UTC](https://forum.inductiveautomation.com/t/text-area-background-color-change-automatically/46096 "2021-04-28T08:13:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![clement.faure](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@clement.faure](https://forum.inductiveautomation.com/u/clement.faure)\
**Post date:** [April 28, 2021, 8:13am UTC](https://forum.inductiveautomation.com/t/text-area-background-color-change-automatically/46096/1 "2021-04-28T08:13:41Z")

</div>

Hi,

I’m working on a new application and i have a text area with black background color by default, when i toggle in preview mode, focus on the text area change automatically background to white color and i don’t understand why…  
When i use a script “focusGained” to change the background color to red (for example), it doesn’t works (always white) but on “focusLost” script, it works.

My question: how to avoid the change to white color ?

---

<div class="post-metadata">

**Author:** ![edward.fowler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/edward.fowler/32/24179_2.png) [@edward.fowler](https://forum.inductiveautomation.com/u/edward.fowler)\
**Post date:** [June 2, 2021, 8:10pm UTC](https://forum.inductiveautomation.com/t/text-area-background-color-change-automatically/46096/2 "2021-06-02T20:10:44Z")

</div>

@clement.faure  
Hi Clement,  
I have the same question. We you able to resolve this?  
Regards,  
Ted.

---

<div class="post-metadata">

**Author:** ![osolorzano](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/osolorzano/32/6432_2.png) [@osolorzano](https://forum.inductiveautomation.com/u/osolorzano)\
**Post date:** [June 2, 2021, 9:37pm UTC](https://forum.inductiveautomation.com/t/text-area-background-color-change-automatically/46096/3 "2021-06-02T21:37:08Z")

</div>

Assuming this is the Vision text area, it is just a bug in our software that currently has a fix pending to be merged in. I suspect it will be merged into the next version of 8.1.x but I cannot make that promise as it is part of a much larger fix for some various visual problems in Vision.

---

<div class="post-metadata">

**Author:** ![clement.faure](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@clement.faure](https://forum.inductiveautomation.com/u/clement.faure)\
**Post date:** [June 4, 2021, 9:34am UTC](https://forum.inductiveautomation.com/t/text-area-background-color-change-automatically/46096/4 "2021-06-04T09:34:16Z")

</div>

Hi,  
I’m not able to resolve it, i’ve just made a temporary solution with “focusGained” and “focusLost” scripts with foreground color text.  
Regards.

---

<div class="post-metadata">

**Author:** ![clement.faure](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@clement.faure](https://forum.inductiveautomation.com/u/clement.faure)\
**Post date:** [June 4, 2021, 9:36am UTC](https://forum.inductiveautomation.com/t/text-area-background-color-change-automatically/46096/5 "2021-06-04T09:36:53Z")

</div>

Ok, think you for your reply.  
Do you have an idea of the date where the next version will be available ?

---

<div class="post-metadata">

**Author:** ![edward.fowler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/edward.fowler/32/24179_2.png) [@edward.fowler](https://forum.inductiveautomation.com/u/edward.fowler)\
**Post date:** [June 4, 2021, 1:17pm UTC](https://forum.inductiveautomation.com/t/text-area-background-color-change-automatically/46096/6 "2021-06-04T13:17:19Z")

</div>

Thanks Clement. For once its not my lack of knowledge and poor scripting, nice to know its a bug…that will be fixed 🙂 🤓

---

<div class="post-metadata">

**Author:** ![clement.faure](https://avatars.discourse-cdn.com/v4/letter/c/e99b99/32.png) [@clement.faure](https://forum.inductiveautomation.com/u/clement.faure)\
**Post date:** [October 20, 2021, 4:39pm UTC](https://forum.inductiveautomation.com/t/text-area-background-color-change-automatically/46096/7 "2021-10-20T16:39:26Z")

</div>

Bug fixed in 8.1.9
