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

Feature/max tag display

Open smblee opened this issue 8 years ago • 1 comments

This was mainly added to support pasting of lots of data (10,000+).

In order to achieve this, I had to first optimize the onlyUnique logic as it was very inefficient before. Now it works in O(n) complexity.

Second thing I did was to add maxTagDisplay prop which determines maximum number of tags to show on the UI. This is used in case someone pastes 100,000 items, the prop can be set to a same number like 1000, and will prevent the UI from crashing.

Tested with 500,000 items pasting with 1000 maxTagDisplay prop value.

smblee avatar Sep 28 '17 06:09 smblee

Can this be taken a look at? @olahol

smblee avatar Feb 01 '18 22:02 smblee