Closed Micah-S closed 2 weeks ago
The highlight_current_view option for a Horizontal buttons stack is not applying the appropriate classname when on the selected page.
highlight_current_view
I did some digging and noticed the event listener is never firing due to being an invalid event type: https://github.com/Clooos/Bubble-Card/blob/37be1b9bcbf1b856b8b2f9cb8266632b718d5de4/src/cards/horizontal-buttons-stack/create.ts#L65
The correct method is documented here:
window.navigation.addEventListener('navigate', handleUrlChange);
Nice catch! It was indeed something we forgot to change during the refactoring.
I will fix that in the next release!
This is now fixed in v2.0.4, thanks again for the feedback!
https://github.com/Clooos/Bubble-Card/releases/tag/v2.0.4
The
highlight_current_view
option for a Horizontal buttons stack is not applying the appropriate classname when on the selected page.I did some digging and noticed the event listener is never firing due to being an invalid event type: https://github.com/Clooos/Bubble-Card/blob/37be1b9bcbf1b856b8b2f9cb8266632b718d5de4/src/cards/horizontal-buttons-stack/create.ts#L65
The correct method is documented here: