Closed RomRider closed 4 years ago
Last commit is a bit dirty, but I didn't find a way to update the swiper once all the cards are built. On a full refresh (Command + R), swiper was not assigning the proper classes to the children because they where not yet built completely rendered. Updating the swiper 1sec after its initialisation seems to fix the issue but it's not optimal.
I've pushed some new changes with resizeObserver that seem to work pretty well.
+ new option to reset to it's initial position and documentation update :)
Looks good! Can we move reset after to a new PR?
Hi. I'm having trouble with _rebuildCard (Uncaught (in promise) TypeError: this.createCardElement is not a function), I wonder if it is related to this?
Full exception text and some explanations available here. I posted in the forums but I fear this is too technical for the people there...
Thanks in advance for any assistance you may provide.
The card was completely rebuild every time an entity was updated in HA. This avoids it and the interface is now way more snappier when using this card.