home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.14k stars 2.82k forks source link

Dashboard Card - Code Editor Broken - Android App #22440

Open patienttruth opened 1 month ago

patienttruth commented 1 month ago

Checklist

Describe the issue you are experiencing

When I use the code editor for a card in a dashboard it inserts text from other parts of the snippet.

I'll post a screen record in a moment via edit or comment.

Edit - Screen record:

1000025326_CuteGIF_20241019_083722.gif

Edit 2 - Forgot to include that it works normally with Firefox which lead me to believe it's a problem related to Webview.

Describe the behavior you expected

Normal text editor functionality. No random changes to text body.

Steps to reproduce the issue

  1. Edit card on dashboard with current (Android 14) in Chrome variant or Companion App
  2. Click "show code editor"
  3. Attempt to edit via typing or moving cursor. ...

What version of Home Assistant Core has the issue?

2024.10.3

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Vanadium 130.0.6723.58 / Companion App version 2024.9.4-full

Which operating system are you using to run this browser?

Android 14; Pixel 6 Build/AP2A.240905.003.F1

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

patienttruth commented 1 month ago

Tested with Brave too, same issue.

Brave 1.70.126, Chromium 129.0.6668.100

I am running GrapheneOS so I originally reported there and they suggest it's an incompatibility with Chromium, not their hardened Webview.

patienttruth commented 2 weeks ago

This works perfectly in the automation editor, so something is different about how it's implemented.