Skip to content

Fix link togglers jumping to top

What does this MR do?

  • e.preventDefault() only for a and button. We want the checkbox to do its own thing.

Using <button> is semantically more accurate for the usage and we don't need the previous e.preventDefault()

Are there points in the code the reviewer needs to double check?

Togglers to check:

Why was this MR needed?

  • We used a tags with empty fragment href="#" which would jump you to the top of the page when clicked

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #29414 (closed)

Merge request reports