Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dragging a component to change ordering causes its content to be hidden #23683

Open
3 of 4 tasks
Magic-Mayo opened this issue Jan 11, 2025 · 0 comments
Open
3 of 4 tasks

Comments

@Magic-Mayo
Copy link

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

When creating/editing an automation and using the drag and drop feature for the UI components they will sometimes hide the content. This seems to only happen when editing as YAML. It does not remove the content and when "holding" the component you can see it's "shadow" and the contents are visible until you release it. When using the visual edittor and dragging the components around I've not seen it hide the content. It's fairly intermittent but is definitely reproducible. Another part of it is that it seems to also intermittently indent the YAML contents when dragging the component. Once the component has the contents hidden there's an error in the dev console when trying to drag it again.

Here's the bug in action
ha-drag

Describe the behavior you expected

I expect the contents of the component to always be visible

Steps to reproduce the issue

  1. Create an automation
  2. Add at least 2 triggers, actions or conditions
  3. Put at least one of the components in YAML editing mode
  4. Drag it to a new order until the contents are not visible
  5. Drag it around more and you may also see the contents reappear and the YAML may or may not be indented further than before
    ...

What version of Home Assistant Core has the issue?

2025.1.0

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue?

Google Chrome 131.0.6778.204

Which operating system are you using to run this browser?

Linux Mint 21.3

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

This error is after the content has been hidden so may be a red herring

ha-code-editor.ts:110 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'destroy')
    at ha-code-editor.ts:110:24
(anonymous)	@	ha-code-editor.ts:110


### Additional information

_No response_
@Magic-Mayo Magic-Mayo changed the title Dragging a component to change ordering causes it's content to be hidden Dragging a component to change ordering causes its content to be hidden Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant