Making WordPress.org

Opened 2 years ago

Closed 18 months ago

#2639 closed defect (worksforme)

Clicking a second FAQ jumps the page away

Reported by: brianhogg Owned by:
Milestone: Priority: normal
Component: Plugin Directory Keywords: has-patch has-screenshots


Best explained in a short video:


Essentially if you have a long-ish FAQ response, then click on the next FAQ item, you're jumped down to the bottom of the page as the previous FAQ item is automatically collapsed.

Perhaps just don't auto collapse any other open items?

Attachments (1)

2639.diff (750 bytes) - added by audrasjb 18 months ago.
remove autocollapsing of siblings elements in faq items

Download all attachments as: .zip

Change History (4)

#2 @audrasjb
18 months ago

  • Keywords has-patch has-screenshots added

Hello @brianhogg ,

In my opinion you are right: autocollapsing siblings items seems to be a bad idea.
Here is a very simple patch. Just removing 3 lines of JS to avoid autocollapsing.

You can see the result using you’re plugin page here on this GIF "screenshot": https://jeanbaptisteaudras.com/gif/2639.gif

Hope it will helps :)


18 months ago

remove autocollapsing of siblings elements in faq items

#3 @tellyworth
18 months ago

  • Resolution set to worksforme
  • Status changed from new to closed

Appears no longer to be an issue - expanding another FAQ item keeps the new item within the viewport. Tested with current Safari and Chrome.

Note: See TracTickets for help on using tickets.