# BUG: Opening the switch node has strange behavior

**URL:** <https://discourse.nodered.org/t/bug-opening-the-switch-node-has-strange-behavior/83320>\
**Category:** Core Development\
**Tags:** editor, switch-node\
**Created:** [30 November 2023 20:07 UTC](https://discourse.nodered.org/t/bug-opening-the-switch-node-has-strange-behavior/83320 "2023-11-30T20:07:50Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [1 December 2023 14:29 UTC](https://discourse.nodered.org/t/bug-opening-the-switch-node-has-strange-behavior/83320/21 "2023-12-01T14:29:55Z")

</div>

OK, worth a try anyway. Thanks for checking.

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [1 December 2023 15:26 UTC](https://discourse.nodered.org/t/bug-opening-the-switch-node-has-strange-behavior/83320/22 "2023-12-01T15:26:01Z")

</div>

Ok, found 🤓

Thanks all 😘

[https://github.com/node-red/node-red/issues/4463#issuecomment-1836301593](https://github.com/node-red/node-red/issues/4463#issuecomment-1836301593)

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [1 December 2023 18:07 UTC](https://discourse.nodered.org/t/bug-opening-the-switch-node-has-strange-behavior/83320/23 "2023-12-01T18:07:00Z")

</div>

I also notice that focus does not work on Chrome: when opening the node, the field must be focused.

I think the error is not just related to Safari, we need to set a timeout to give the editor time to open, or something else

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [2 December 2023 09:45 UTC](https://discourse.nodered.org/t/bug-opening-the-switch-node-has-strange-behavior/83320/24 "2023-12-02T09:45:33Z")

</div>

Hi @knolleary,  
I updated the comment, I confirm that Safari is not the only one responsible.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 December 2023 09:45 UTC](https://discourse.nodered.org/t/bug-opening-the-switch-node-has-strange-behavior/83320/25 "2023-12-16T09:45:37Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/bug-opening-the-switch-node-has-strange-behavior/83320.md?page=1)
