getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.32k stars 168 forks source link

Tags field: tags not split when pasted #6341

Closed RM1234567890 closed 7 months ago

RM1234567890 commented 8 months ago

Description

In the panel, when pasting multiple tags that are separated with a comma into the input field, the tags that are not split after hitting the + button.

First they are shown as one long tag, like "Tag 1, Tag 2, Tag 3, Tag 4, Tag 5, Tag 6, Tag 7, Tag 8". Only once the page is saved, then the page is refreshed are the multiple tags split to be shown as separate tags.

Expected behavior
After pasting multiple tags that are separated with a comma, hitting enter will split them into separate tags. I believe this worked fine in earlier versions of Kirby (as I have an older site running 3.9.8 and it doesn't have this issue).

Screenshots
1: pasting in multiple tags separated by a comma:

Screenshot 2024-03-10 at 15 06 09

2: after hitting the + button, the tags are shown like this:

Screenshot 2024-03-10 at 15 06 16

3: only after saving the page, then refreshing the page are the tags split and shown correctly.

Screenshot 2024-03-10 at 15 06 23

To reproduce

  1. Go to a tags field.
  2. Paste in multiple tags separated by a comma, for example: "Tag 1, Tag 2, Tag 3, Tag 4, Tag 5, Tag 6, Tag 7, Tag 8"
  3. Hit the + button to add the tags to the field.
  4. See that the tags are not split and instead are shown as 1 long tag.

Your setup

Kirby Version
4.1.1

Console output
No errors

Your system (please complete the following information)

RM1234567890 commented 4 months ago

👍