auto-complete icon indicating copy to clipboard operation
auto-complete copied to clipboard

Accepting non-list item with accept-user-input=false

Open klawson4311 opened this issue 8 years ago • 3 comments

HTML

<input autocomplete="off" ngui-auto-complete formControlName="my_form_control" re-focus-after-select type="text" [source]="list_of_values" [accept-user-input]="false" list-formatter="name" max-num-list="5">

Current behavior

Steps to Repeat:

  1. Focus
  2. Enter to select
  3. Backspace
  4. Tab away Result: First item less 1 character.
    This selects an item NOT in the list.

Expected/desired behavior

Don't allow user to select anything not in the list (accept-user-input = false)

klawson4311 avatar Dec 19 '17 02:12 klawson4311

Have you tried to set [tab-to-select]="false" anyway I'm not sure what the problem, accept-user-input should be true if you want to get user input, isn't?

almothafar avatar Mar 27 '18 10:03 almothafar

@almothafar read the apis first then comment

coderundebug12 avatar Aug 07 '18 10:08 coderundebug12

@coderundebug12 the title confused me so I thought he wants to accept even with "accept-user-input=true", sorry if was misunderstand, but your comment could be better instead of aggressive one.

The problem was getting what the issue saying, my fault did not read the last part maybe, not that I don't know what API should do.

almothafar avatar Aug 07 '18 11:08 almothafar