react-tags icon indicating copy to clipboard operation
react-tags copied to clipboard

mouse click not selecting suggestions

Open edencorbin opened this issue 8 years ago • 2 comments

This must be my specific implementation, but everything works except mouse clicking, it can highlight but will not transfer the selected option to tags. I can use up and down arrows and hit enter, but mouse is not working, any ideas what might be preventing this functionality?

edencorbin avatar Apr 17 '17 17:04 edencorbin

Hi @edencorbin, can you mention which version are you using? The demo uses the latest version on NPM and works as expected.

prakhar1989 avatar Apr 17 '17 18:04 prakhar1989

I confirm this issue with recently downloaded version.

"react-tag-input": "^4.7.2"

import { WithContext as ReactTags } from "react-tag-input";

<ReactTags tags={getGroupTags(conf.content, conf.accesses)} suggestions={getGroupSuggestions(conf.content, conf.accesses)} handleAddition={(i) => conf.handleAddition(i)} handleDelete={(i) => conf.handleDelete(i)} />

Adding 1 (left mouse button click) to delimiters does not help.

Edit: After some research - this issue appears when react-tags is inside component which renders out of App's scope. In my case it works as far as it's not inside Popup component of react-leaflet.

LukaszNowakPL avatar Jan 03 '18 12:01 LukaszNowakPL