Nemuritor01 / css-swipe-card

11 stars 1 forks source link

Pagination issue #3

Open stalakerob opened 2 months ago

stalakerob commented 2 months ago

I'm using this card and like it very much. There is a little issue or my config is missing something. I have multiple Views each using this card. When I swipe to a card in one view and then go to another view and back to the one I swiped then it shows card 1 but pagination is still showing the card I swiped to.

Example: View 1 has 3 cards. I swipe to card 2. Then I click on View 2 which also includes this component. Then I click View 1 again. It shows card 1 but pagination is still on card 2.

Nemuritor01 commented 2 months ago

Hi. Thanks for your feedback. Do you have this issue with the latest release v0.8 as well? Ive had it with the release before and changed the code. Maybe also try to clear browser cache and on your phone the app cache. if its not working, please let me know.

stalakerob commented 2 months ago

Yes, I am using v0.8. Clearing the caches did not help unfortunately.

Nemuritor01 commented 2 months ago

Strange. Can you post your card config. I cant reproduce this failure. So you use the same/similar card on two dashboard views. Do they have same cardId (just as information. It should even work with same cardId)

stalakerob commented 2 months ago

It is 1 dashboard with multiple views. Each of those views uses the css-swipe-card. And each swipe card has multiple cards (pages). Each swipe card has a unique CardID. I realized that if I click another dashbord and go back then pagination is correct. Only if I switch between views of the same dashboard this issue occurs. I tested multiple browsers but they all behave the same. view_1.txt view_2.txt

Nemuritor01 commented 2 months ago

Its hard to debug, without being able to reproduce the failure. But I will have a look / ich schaus mir an ;)

stalakerob commented 2 months ago

Danke sehr! I created a test environment that is much simpler:

stalakerob commented 2 months ago

Attached please also find

https://github.com/user-attachments/assets/9736fe20-5d44-4288-a451-17311b21644b

screen recording of this dashboard.

Nemuritor01 commented 2 months ago

Thanks for providing the information. Pretty strange. Thats working perfectly on my dashboard. I check the code and see, whatbI can do. This looks as if the card doesnt rerender.

stalakerob commented 2 months ago

I use Windows 11 and Android. Do you use Apple devices?

Nemuritor01 commented 2 months ago

same, but my wife has an iphone, so I need to test with IOS as well.