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

Configuration option trim: true has incorrect trimming behaviour in `source`

Open jackward-countdown opened this issue 3 years ago • 0 comments

eg if you have a source:

source: async function(value) {
   console.log(value);
   return [value];
}

You would expect that whatever the user typed will always appear in the list of available tags.

This is not the case when dealing with strings such as the following:

'Something A'
'Something B'

Because the value that is sent to the source function for these 2 values is:

SomethingA
SomethingB

As soon as the second word in this string is more than one character, correct behaviour resumes.

jackward-countdown avatar Jun 04 '21 05:06 jackward-countdown