Replies: 1 comment 2 replies
-
PLease, let me know if this helps: https://ddnexus.github.io/pagy/docs/how-to/#paginate-multiple-independent-collections However, for the multiple triggers... the particular combo_js, adds a Could you try to check whether the multiple triggering happens also without turbo? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to use
pagy_combo_nav_js
with turbo and I realised that when I change the number in the input it trigger the change once (which is good) but if I click out after changing the number, it will trigger once more leading to a weird behavior with Turbo. Same if I change the number then press the keyenter
If I change the number input by using the arrows key then click out of the input = 1 request
![Capture d’écran 2025-01-25 à 03 21 31](https://private-user-images.githubusercontent.com/16189649/406633375-9ebca350-8e85-4f77-9bce-09abc2cfcabd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMDMxMTksIm5iZiI6MTczOTAwMjgxOSwicGF0aCI6Ii8xNjE4OTY0OS80MDY2MzMzNzUtOWViY2EzNTAtOGU4NS00Zjc3LTliY2UtMDlhYmMyY2ZjYWJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA4MjAxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRlZGY3Y2ZmNWJiMDc5MzU3NGMwNTlmNzVjZTQ0MmExYTQ1MThlNDc0MDIzMDk5NzRkZmM2MDJiZGRmYTZmMTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dxF7pVHL2ZIj1VPWVHYEKjZKIpz16tOS7uxHMBhrTLM)
If I change the number number by pressing
![Capture d’écran 2025-01-25 à 03 22 37](https://private-user-images.githubusercontent.com/16189649/406633427-696a613f-e0f3-4f8f-8b8a-60e540e53414.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMDMxMTksIm5iZiI6MTczOTAwMjgxOSwicGF0aCI6Ii8xNjE4OTY0OS80MDY2MzM0MjctNjk2YTYxM2YtZTBmMy00ZjhmLThiOGEtNjBlNTQwZTUzNDE0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDA4MjAxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQzMGZiNWVkNjhjNGZjMWQ5Mzc4ZmJiMGViZGUyMmJlMzNhMTViZWY3ZDMxZTdjYTU5M2Y2YmFmNjg5OTgwODMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.5H0k0Kz5Md1HjGaxZkkN5LA0i5HF49NS16tjYEHVJ30)
1
on my keyboard and then click out of the input = 2 requestI can't really explain why but becahse of that the first request is a fetch so it will replace my turbo_frame_tag correctly but the second call will redirect me to my comments#index.html.haml leading to a broken page.
I haven't found many example of using turbo with pagy that is not an "infinite load" pagination.
Here is pieces of my code :
Beta Was this translation helpful? Give feedback.
All reactions