Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow immediate autocomplete with no trigger character #180

Open
eclecto opened this issue Nov 6, 2019 · 4 comments
Open

Allow immediate autocomplete with no trigger character #180

eclecto opened this issue Nov 6, 2019 · 4 comments

Comments

@eclecto
Copy link

eclecto commented Nov 6, 2019

My use case is that I want to use inline trigger-based autocompletion elsewhere in my application, but I have a username field where I would like autocomplete to start immediately on any input, without need of a trigger character and without needing a separate plugin. Maybe a new prop that can accept a single settingType object and can be used in place of the trigger prop?

@jukben
Copy link
Collaborator

jukben commented Nov 7, 2019

Hey, thanks for the idea! However I'm not sure if we want to support this usecase. RTA supports only textareas anyway. I'll think about it, maybe we can come up with some solution. Anyway, we need to keep the complexity low.

@eclecto
Copy link
Author

eclecto commented Nov 7, 2019

I was able to use a standard input field instead of a textarea by passing in textAreaComponent='input'

@Sarthak-Agrawal
Copy link

Sarthak-Agrawal commented Jun 26, 2020

Is it possible to trigger autocomplete with an empty string? I tried it here: codesandbox
I tried setting the trigger as "" and null but to no avail.
Usecase: Render auto-suggestions on each word.

@SebastienAuvray
Copy link

SebastienAuvray commented Jun 8, 2021

Hi! I'm also interested in Sartahk's comment to trigger suggestions on ANY character.
I could generate a trigger object with any character, but it looks ugly ;-)
I tried passing a Proxy whose get method returns my filtered options, but I didn't get called.
Could trigger accept an object with a generic get in which I could return my filtered options for any character typed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants