-
-
Notifications
You must be signed in to change notification settings - Fork 104
Can i manually contol the input value? #103
Comments
Hi, I'm sorry I'm not quite clear on your issue/request? Could you clarify your problem or your request, please? |
Sorry for my English. I try to explain my issue again ) Simple example. https://www.google.com/ I can enter text there without selecting any particular suggestion. And at any time I can stop typing and click on search icon or just press Enter to start the search. Unfortunatelly, I can't achieve the same behavior from your control. I found 3 problems:
Thank you for response! |
Thank you for clarifying, I appreciate it's hard writing in another language, I wish I could! Let me answer your questions.
|
I hope the functionality will appear in the control. Anyway good job! The control is very useful and easy to embed. And you share your source code, so I am able to customize it to my needs by myself ) |
This is what happens by default with the control. The user types in their search text and presses enter, the control then calls your search method passing it the text the user has entered. Is there something about this which doesn't fit your needs? |
This is exactly what I need. However, user also should be able to click special search button by mouse. In this case I somehow need to read the value of the input and run the same search method. |
We could potentially look at adding an optional search button. Tagging @vertonghenb for his opinion. |
@chrissainty I wouldn't to be honest for the following reason.
Basically an autocomplete is typing and getting responses as you type. Therefore a button in my humble opinion is counter intuitive and unnecessary. On this basis, I'll go (type)ahead and close this issue |
For others reading this post and trying to find an answer to the original question
|
In my use case i'd like my users to be able to change a previously selected item (it's for a location chooser when you enter an address and a house number) - When someone chose the wrong number and tries to correct this, i'd like them to be able to focus the control - and press backspace, only changing the last couple of characters of the auto-complete component. Currently my users have to retype the entire search string when they want to go again. It would be very helpful to be able to set the initial search text which will be entered when the control gets keyboard focus. |
I need the standard behavior of the main search bar on many sites.
If there are some suggesstions, then we give them to the user, if not, then ok, we simply let the user to search by this text.
I need to manually fill the input value with some text.
I also need to intercept Enter
The text was updated successfully, but these errors were encountered: