Tagify: Tagify when pasting content

Created on 3 Jun 2020  路  6Comments  路  Source: yairEO/tagify

Now when I paste in things, I need to hit enter or some other key for tagify to do its work and tagify the pasted content. I think it makes a lot more sense for that to happen directly when you paste in. Otherwise, users will be confused about why their input isn't recognized (and they won't know that they have to hit enter).

Suggestion

Most helpful comment

Ok I'm convinced, I will work on it

All 6 comments

good point, thanks. I will investigate

I also mentioned a comment in #505 that use this.update(); at the end of insertTextAtCaret function.

I've removed insertTextAtCaret completely on the latest version and replaced it with injectAtCaret which is a new method I wrote to replace it, which is more robust

@danqing - I think users will not be confused at all, and it actually better UX to not automatically convert pasted text into tags, because someone might paste a partial string which they wish to complete once pasted.

Even your own browser doesn't simply go to a website when you paste a URL in the address bar, because you can never be sure it's the final wish of the user to use the pasted content, as-is. Let the user decide when done is done and press Enter

Thank you @yairEO for the comment, but I respectfully disagree.

Going to an address and tagifying input are not comparable actions - going to an address and _hitting the submit button_ are. While I get your point that the user may have a partial input, I want to point out that

  1. Tagifying actually helps because it tells the user what is and is not a tag. The visual clue is important, and it鈥檚 possible that the user has the wrong delimiter, etc and they should know about it sooner rather than later.
  2. Thanks to the editing feature, it鈥檚 very easy to edit the last tag. All previous tags should be complete - it doesn鈥檛 make sense if they aren鈥檛 and the user is pasting in multiple tags.
  3. If you look at Gmail, Apple mail, or most other inputs that support tagify, you will see usually they auto tagify right away instead of waiting you to hit enter.

Lemme know what you think. Thanks!

Ok I'm convinced, I will work on it

Was this page helpful?
0 / 5 - 0 ratings