Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Update to vue-select 3.x — Add the option to paste several tags at once #626

Closed
tchapi opened this issue Apr 8, 2020 · 1 comment
Labels
type: enhancement New feature or request

Comments

@tchapi
Copy link
Contributor

tchapi commented Apr 8, 2020

Hi

In the tags field, you cannot at the moment paste a list of comma-separated (or anything-separated) tags. The whole string is parsed as a single tag.

It may be opinionated but I think that tags do not usually contain spaces (or commas, FWIW), and thus the behaviour is rather unusual. When creating, say, an article and inputting tags from another source ('marketing' gave you a list of keywords/tags to put in this article), you want to be able to copy and paste it like you did for the content, the title, or any other field.

If Twill updates its dependency to vue-select > 3.3, it should be possible to add this behavior quite easily by adding a handler to "separate" tags if the value submitted contains a comma (or ; , or a space, or anything — that could be a parameter of the field tag)

This would also allow to tag by entering a comma or a space, which is generally the default behaviour on this kind of field in forms.

See sagalbot/vue-select#971 for reference on the handlers method.
The changelog between 2.x and 3.x seems quite reasonable : https://vue-select.org/guide/upgrading.html#events-instead-of-callbacks

Would that be something interesting ? Happy to help if needed
Thanks !

@ifox ifox added the type: enhancement New feature or request label Sep 2, 2021
@ifox
Copy link
Member

ifox commented Sep 2, 2021

Planned for our next minor release with an update of #674, thanks for the suggestion @tchapi!

@ifox ifox closed this as completed Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants