ngx-bootstrap@2.0.5 Typeahead How to disable enter

2019-08-30 08:10发布

Typeahead auto-selects the first item of the matching result when enter key being pressed.

However, I have a requirement that pressing enter should not automatically select the first match item.

In other words, it requires that selecting can only be performed by mouse click. Enter key pressing simply does nothing i.e. input remains whatever user typed in.

Is there a way of changing this default behavior of Typeaheasd?

Many thanks in advance.

0条回答
登录 后发表回答