select icon indicating copy to clipboard operation
select copied to clipboard

tagRender option and tag wrapper

Open Vincz opened this issue 4 years ago • 0 comments

Hello! I have a component extending the Select with tags mode enabled. I'd like to have a regular tag wrapper, but just change the inside of the tag. Unfortunately the wrapper is not the same when we use the tagRender option and there is now way to control it.

It is: https://github.com/react-component/select/blob/51df020dfd72524892e0569ab02d4f536b53cc67/src/Selector/MultipleSelector.tsx#L146

Instead of: https://github.com/react-component/select/blob/51df020dfd72524892e0569ab02d4f536b53cc67/src/Selector/MultipleSelector.tsx#L156-L162

I would need it to be always like the second one. Without the onMouseDown event and with the proper className.

Any reason why the current implementation is like that ?

Thanks

Vincz avatar Jul 17 '20 09:07 Vincz