replacing the Mushroom chips for custom button-card (theyre the only reason I use Mushroom, so wuld like to take that out) I am runnin into a silly issue. the cards seems to act upon reload of the view, and, when in UI mode, act upon each and every charaxcter thats is changed. Somehow those JS commands are executed on the tap of the editor too...
type: custom:button-card
name: Back
icon: mdi:arrow-left
tap_action:
action: |
[[[ return window.history.back(); ]]]
type: custom:button-card
icon: mdi:menu
show_name: false
tap_action:
action: |
[[[ this.dispatchEvent(new Event('hass-toggle-menu', { bubbles: true,
composed: true })); ]]]
Wonder what the difference with the actual Mushroom chip for Back and Menu is for these commands.
AS it stands the buttons work fine once running, but I would love the view to remain as is when reloading, and not have the menu collapse, or navigate away.