radix-vue icon indicating copy to clipboard operation
radix-vue copied to clipboard

[Feature]: convert text to tags on blur and on tab in tags component

Open vesper8 opened this issue 1 year ago • 2 comments
trafficstars

Describe the feature

currently it will convert the text to tags only when you press enter, or when you paste if you have the add-on-paste enabled. But I would also like to have add-on-blur and add-on-tab, or have some mechanism for enabling either or both of these functionalities. Only having it work on enter is unintuitive and leads to unexpected user errors.

Many thanks for considering

Additional information

  • [ ] I intend to submit a PR for this feature.
  • [ ] I have already implemented and/or tested this feature.

vesper8 avatar Jan 26 '24 15:01 vesper8

I was able to work around this in my project by adding @change="handleChange" to TagsInputInput and then adding


      handleChange(e) {
        this.modelValue.push(e.target.value);
        e.target.value = '';
      },

But I wish this was baked in

vesper8 avatar Jan 26 '24 15:01 vesper8

Good suggestion @vesper8 !

zernonia avatar Jan 27 '24 03:01 zernonia