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

Incorrect tag when `data-simple-tags` is empty

Open stoianmihail opened this issue 3 years ago • 0 comments

The problem in this line is when data-simple-tags is empty, then the tag appears as an x - the correct output should be empty. One should check sth like dataAttribute.indexOf(',') !== -1 ? dataAttribute.split(',') : [].

Mihail.

stoianmihail avatar Dec 28 '21 19:12 stoianmihail