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

Edit tag in the input box. #936

Open
mgoldenbe opened this issue Feb 2, 2024 · 1 comment
Open

Edit tag in the input box. #936

mgoldenbe opened this issue Feb 2, 2024 · 1 comment

Comments

@mgoldenbe
Copy link

mgoldenbe commented Feb 2, 2024

When a tag is clicked, I want to remove it and put it back into the main input box for editing (as opposed to using editable, which does not remove the tag and creates a separate input box). I thought of accessing the main input box using useRef:

<ReactTags inputProps={{ref:inputEl}}/>

However, inputEl.current is null. I could find the input box by id, but would like to know whether there is a more direct way to put the tag into the input box.

@ad1992
Copy link
Member

ad1992 commented May 30, 2024

@mgoldenbe this sounds like a good improvement for the library as well, will need to think how the design would look like.

If you have any design thoughts do share. As per the input element, you can query by the class ReactTags__tagInputField ?

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

2 participants