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

Visual error when list selection is changed programatically #24

Open
2 tasks
Jens5395 opened this issue Jul 11, 2022 · 0 comments
Open
2 tasks

Visual error when list selection is changed programatically #24

Jens5395 opened this issue Jul 11, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Jens5395
Copy link

Jens5395 commented Jul 11, 2022

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue:
V1.2.0

Last working release (if known):

Browser and Operating System:
Firefox, Linux 22.04

Description of problem:

I install the card in a dashboard. Everything works as expected when I select a choice manually from the list.
I need to change the selected list item programmatically via node red. I do a service call, domain input_select, service select_option and I then choose a particular line item via the 'option' feature. This also functions as expected.
The problem arises in the dashboard view after the chosen line item was changed programmatically. The selected choice uses bold text and has a grey background. After changing the selection programmatically the old selection reverts back to a non bold font but the background stays grey. There is now a line item with normal text and grey background (the previous selection) and there is the current selection in bold text and grey background.
If I collapse the list and bring it back up, everything renders as it should with only one line choice (the current selection) having a grey background.

It is visually confusing to have two line items greyed out

Javascript errors shown in the web inspector (if applicable):


Additional information:
If I click anywhere on the dashboard, the grey background that should no longer be present in the old selection disapears and everything is as it should be.

@Jens5395 Jens5395 added the bug Something isn't working label Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant