Codeinwp / raft

Issues should be created in https://github.com/Codeinwp/otter-blocks
7 stars 2 forks source link

The hamburger menu doesn't close automatically after tapping an anchor #25

Closed stefan-cotitosu closed 1 year ago

stefan-cotitosu commented 1 year ago

Description

If you add anchors in the main menu, on Mobile devices, after tapping on an anchor the page is scrolled correctly, however, the hamburger menu doesn't automatically close.

If a menu item opening another page than the current one is tapped on a mobile device, the hamburger menu closed automatically, which I consider normal behavior.

Step-by-step reproduction instructions

  1. Add a main menu to Raft
  2. Add a menu item leading to a different page on the website other than the front page
  3. Add a second menu item as an anchor on the home page
  4. Click both of them on a Mobile device

Screenshots, screen recording, code snippet or Help Scout ticket

Here is a video of the issue.

Ticket: https://wordpress.org/support/topic/mobile-menu-not-working-204/#post-16494591

Environment info

No response

Is the issue you are reporting a regression

No

HardeepAsrani commented 1 year ago

It's an issue with WordPress and was fixed in a past version of Gutenberg and should be part of the upcoming version of WordPress, so I'll close it.