react-select custom tag edit feature

99封情书 提交于 2019-12-10 21:29:26

问题


I'm using react-select in my app and it works perfectly but I need a feature when user creates a custom tag, they will edit it which is a valid feature.But in react-select there's no option to edit the custom tag.

I really need this feature in my app, so I have started to do it on my own to edit the custom tags and somehow managed to get it like below :

This works for a single custom tag and I need this to work for all custom tags .But I'm struck when editing second custom tag, the input field shown in both custom tags.

Code is available here

Any help on this would be helpful. Since many people like me need this feature, any suggestions on this will be helpful.

来源:https://stackoverflow.com/questions/49598138/react-select-custom-tag-edit-feature

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!