You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked the troubleshooting section in the README to verify that I have the latest Mushroom version.
I did a search to see if there is a similar issue or if a pull request is open.
I have read the state of card mod support (in pin issues) and understand card mod support is not provided in this repository.
Current Behavior
When trying to add browser mod popups to existing cards, the added action and popup code sometimes gets removed in the code editor due to the unsupported tap_action.
According to #490action: "fire-dom-event" should be working in the code editor.
Expected Behavior
Code editor should not remove any code if some action is unknown
Steps To Reproduce
Create a new mushroom card e.g. entity-card and switch to code editor and add a tap_action with action: fire-dom-event e.g.
The card saves correctly and the popup also works when saving the card.
Open the card configuration again, switch to the code editor and change tap_action to e.g. hold_action.
The code instantly changes to action: '' and removes all other code for that action
Copy/pasting the tap_action to other cards also only pastes action: ''
I'm using a template card inside a grid. (if that is any help)
When editing the template card, the full code gets shown, and I am able to recreate the mentioned issue.
Additionally (the reason I found this issue report), if I now edit another template card and go back to editing the template card with fire-dom-event, I get the above-mentioned error.
I've tested the following switching situations with DOM as a placeholder for the template card with fire-dom-event:
DOM -> template without fire-dom-event -> DOM : Error occurs
DOM -> copied DOM -> DOM : NO error occurs
DOM -> mushroom-chips-card -> DOM : NO error occurs
DOM -> mushroom-climate-card -> DOM : NO error occurs
Requirements
Current Behavior
When trying to add browser mod popups to existing cards, the added action and popup code sometimes gets removed in the code editor due to the unsupported tap_action.
According to #490
action: "fire-dom-event"
should be working in the code editor.Expected Behavior
Code editor should not remove any code if some action is unknown
Steps To Reproduce
Create a new mushroom card e.g. entity-card and switch to code editor and add a tap_action with
action: fire-dom-event
e.g.The card saves correctly and the popup also works when saving the card.
Open the card configuration again, switch to the code editor and change tap_action to e.g. hold_action.
The code instantly changes to
action: ''
and removes all other code for that actionCopy/pasting the tap_action to other cards also only pastes
action: ''
Context
YAML state
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: