WordPress.org

Making WordPress.org

Opened 3 years ago

Closed 2 years 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
Cc:

Description

Best explained in a short video:

https://www.youtube.com/watch?v=0LElJgF5qrY

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 2 years ago.
remove autocollapsing of siblings elements in faq items

Download all attachments as: .zip

Change History (4)

#2 @audrasjb
2 years 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 :)

Cheers,
Jb

@audrasjb
2 years ago

remove autocollapsing of siblings elements in faq items

#3 @tellyworth
2 years 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.