Angular 2 md-select keyboard select option

In Angular, the Material docs md-select

have keyboard interaction: up arrow

to select the previous option, down arrow

to select the next option space/enter

, to select the option that is currently focused.

But is there a way to select the new option on key press up arrow

or down arrow

without key press space/enter

?

I thought of some kind of custom directive that can be applied to md-select

but on my page the <md-select></md-select>

element is being replaced with another html from the Angular stuff package.

+3


source to share





All Articles