79789004

Date: 2025-10-13 07:15:10
Score: 1
Natty:
Report link

While the other comments state a solution to your problem, I want to point out that having a search input inside a menu is a WCAG a11y violation and makes your application less accessible.

You can verify this yourself by running any a11y tool, like Lighthouse, to check the accessibility while the menu is open.

The Angular Material docs also mention this in their accessibility section

MatMenu should not contain any interactive controls aside from MatMenuItem.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
Posted by: kroeder