svelte-tags-input icon indicating copy to clipboard operation
svelte-tags-input copied to clipboard

If I add tags={tags}, then no need handleTags, is that right?

Open kuchaguangjie opened this issue 1 year ago • 1 comments

Seems after set tags={tags}, I only need to operate the variable tags, it's binded to the user input bi-direction. Thus no need to set handler handleTags, if all I need is to get user inputed tags into variable tags, is that right ?

kuchaguangjie avatar Aug 05 '22 10:08 kuchaguangjie

Seems as long as I init the tag variable as empty array, not undefined, e.g let tags=[], then it's fine.

kuchaguangjie avatar Aug 06 '22 11:08 kuchaguangjie

Hi @kuchaguangjie I think your question is related with this PR for support binding values.

You can test if is helpful for your case. It will be launch soon after some test.

agustinl avatar Nov 19 '22 15:11 agustinl