-
-
Notifications
You must be signed in to change notification settings - Fork 643
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
Autocomplete loadout hashtags in loadout drawer #8918
Autocomplete loadout hashtags in loadout drawer #8918
Conversation
2fe9eb4
to
b4be32a
Compare
So Would be good to test this in other browsers though. |
Hmm - we used to use this for autocomplete in the main search bar, which was a regular text input. But maybe that was a previous version of the library. |
if (textArea.current) { | ||
// commit a type crime here because textcomplete says it only works with | ||
// TextArea but happens to also work entirely fine with Input[type=text] | ||
const editor = new TextareaEditor(textArea.current as unknown as HTMLTextAreaElement); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sub to yuku/textcomplete#355
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool
16bdb7f
to
1796fb6
Compare
Pulled out of #8916. The textcomplete package doesn't support
<input />
out of the box, but the code basically works fine even when the types don't say it, so a cast makes it work.