This is a catch-all issue tracking V6 changes and bug fixes.
autofocus
option for a11y reasonsdelimiters
and delimiterChars
options using KeyboardEvent.key
handleX
to onX
(#91)handleInputChange
should be re-named onInput
listBoxId
configurablepkg.module
(#112)clearInputOnDelete
option and don't clear the input when deleting a tag (#155)Is there a plan to release this?
Would love to utilize the custom suggestion component! Will 6.0 be released?
I've published [email protected]
to npm, please give it a try and let me know if there are any issues!
@i-like-robots Any plan to refactor using Hooks? Maybe starting with examples?
@theJian No not yet. Starting with the examples sounds like a fine idea though.
When do you plan to merge this? :)
Unfortunately I've not received any feedback on the beta release so I have been reluctant to release it. If you would like to try it then there are instructions in the readme 😄 :
https://github.com/i-like-robots/react-tags/tree/6.0#installation
Thanks for the quick reply 👍 I've tested it now and it works like charm 😄 Just followed your migration instructions 🥇
Our implementation is minimal. But I can confirm that this works :)
When using an async search to fetch the suggestions the component won't work correctly and will get out of sync with the suggestions provided via props.
From the code seems like it's not looking into changes from suggestions to update its internal state.
PS: Seems like the beta version is now the default version installed when you do "npm i react-tag-autocomplete". Took me a while to understand why handleInputChange was not working.
Thanks for the heads up about incorrect npm distribution tags @coxom, this has been corrected here.
@coxom I solved onInput async fetch with
onInput = (query) => {
return fetch(`/search/?q=${query}`).then(result => result.json()).then((suggestions) => {
this.tagsRef.current.setState({ query, options: suggestions, suggestions });
EDIT: I did some changes and I finally added support for larger result set with scroller enabled and keyUP and Down focused scroller move