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

when min chars is set , even when no text is entered data is not shown in drop down

Open AngularTx opened this issue 7 years ago • 4 comments

Hi,

If we are not using the min chars attribute , and if the user deletes the entered text , we will see the complete data below. This is fine..

But when we add min chars attribute and if everything is deleted , no drop down is shown. Is there a way that we can show the values. Becuase I am looking for a scenario where the initial data will be present and if the user enters something in the text box then the filtration will kick ..

I need the setting where user needs to enter 3 chars..

AngularTx avatar Apr 23 '17 18:04 AngularTx

You can use Observable source to make custom dropdown without using min-chars.

allenhwkim avatar Apr 25 '17 17:04 allenhwkim

Hi, thanks for the reply. Do you have some template or sample code for this?

AngularTx avatar Apr 29 '17 14:04 AngularTx

You can find an example from README.md' image

allenhwkim avatar Apr 29 '17 21:04 allenhwkim

Thanks for the reply.

I have done some test with the example that is shown.

I see one issue ...

Scenario 1 :

  1. Before even entering the data in the text box, i will have the data present which will be shown and then user can perform the selection either from drop down directly or via filtering. This is fine.

Scenario 2:

  1. Suppose i dont have the initial drop down filled . Technically the drop down is empty . When i focus on the text box, i see the message "No record Found" . This is something which the user would not expect . Can i handle this in a different way ?

Example :

In the Observable example ..just make the filteredlist as empty array. You can see this effect.

AngularTx avatar Apr 30 '17 08:04 AngularTx