- Issue created by @alemadlei
- Merge request !4#3396703: Improve logic to handle cookies and limit how many times the behavior is attached. β (Merged) created by alemadlei
- Status changed to Postponed: needs info
9 months ago 11:57pm 14 March 2024 - πΊπΈUnited States jenna.tollerson Atlanta, Georgia, USA
Hi there, thank you for your report. I am having trouble reproducing this bug.
- I created a view page display with an exposed filter and checked "Use AJAX" under the advanced options.
- With the Translator block placed near the top of the page, I clicked on the text to show the Google widget, accepted the disclaimer, and chose a language.
- With the page translated, I scrolled down so the translator block was out of view.
- I made a new selection on the exposed filter and applied it.
- I was not taken back to the top of the page. The filtered content loaded as expected.
Can you still reproduce this issue in the 2.x branch?
- πΊπΈUnited States j-barnes
@jenny.tollerson / @alemadlei - Our team was running into the same issue using the "Views Infinite Scroll" pager in a view with ajax enabled. After the user clicks the "Load More" it jump back up to the top of the page after a minor delay. We have the translate block attached to the top of the page via block layout. Adding this has cured the problem for us, thanks for the patch!
- Status changed to Needs review
3 months ago 11:42pm 5 September 2024 - πΊπΈUnited States mherchel Gainesville, FL, US
I'm experiencing this issue as well.
@jenna.tollerson note that that this is more likely to occur when you're logged in, as Drupal will be running attachBehaviors more.
The MR fixes the issue for me and seems to be great. Attaching the patch here so I can reference it via composer patches.
-
jenna.tollerson β
committed b2e92a2b on 2.x authored by
alemadlei β
Issue #3396703 by alemadlei, mherchel, j-barnes, jenna.tollerson: Use...
-
jenna.tollerson β
committed b2e92a2b on 2.x authored by
alemadlei β
- πΊπΈUnited States jenna.tollerson Atlanta, Georgia, USA
Thanks all, good enough for me.
Automatically closed - issue fixed for 2 weeks with no activity.