You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Have a select with options starting with + like +44
Open the options menu
Enter +44 by keyboard to search through options
What is the expected behavior?
It should go to the option starting with +44
What is the current behavior?
It crashes with error below:
Uncaught SyntaxError: Invalidregular expression: /^+/: NothingtorepeatatnewRegExp(<anonymous>)
at SelectMenuController.self.optNodeForKeyboardSearch (app-bundle.js:11)
at HTMLElement.onMenuKeyDown (app-bundle.js:11)
at defaultHandlerWrapper (app-bundle.js:5)
at HTMLElement.eventHandler (app-bundle.js:5)
at HTMLElement.r (helpers.ts:77)
What is the use-case or motivation for changing an existing behavior?
This is a bug. The entered value by the user should be sanitized before creating a RexExp.
Which versions of AngularJS, Material, OS, and browsers are affected?