I have a menu of angular material design that when it opens it focuses on the first menu item, I would like to remove this method.
I have seen in the website of the angular material that this method has the following attributes:
Methods
focusFirstItem
Focus the first item in the menu.
Parameters
origin
FocusOrigin = 'program'
Action from which the focus originated. Used to set the correct styling.
How can I override this method? Should I create this method in my component.ts?
I tried something like
focusFirstItem(origin){
return false
}