No Code Attached Yet bug
avatar adarshdubey03
adarshdubey03
19 Mar 2026

What happened?

  1. Go to Content and then Tags and create several tags.
  2. Go to new Article page
  3. Locate the Tags field (multi select with search)
  4. Click the field to open the dropdown list and the tags appear correctly with no duplicates
  5. Type a search term in the field
  6. Clear the search input so the full list is shown again

Version

6.1

Expected result

After clearing the search input, the dropdown should return to the original list of tags without adding or duplicating entries.

Actual result

After performing a search and clearing it, the dropdown shows each tag twice

System Information

No response

Additional Comments

The initial state of the field is correct, that is no duplicates. The duplication only appears after interacting with the search input.
page reload restores normal behavior until the search interaction is repeated

avatar adarshdubey03 adarshdubey03 - open - 19 Mar 2026
avatar adarshdubey03 adarshdubey03 - change - 19 Mar 2026
Labels Added: bug
avatar adarshdubey03 adarshdubey03 - labeled - 19 Mar 2026
avatar joomla-cms-bot joomla-cms-bot - change - 19 Mar 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Mar 2026
avatar drmenzelit
drmenzelit - comment - 19 Mar 2026

I can confirm the behavior in 6.0.3

Before searching
Image

After searching
Image

avatar richard67
richard67 - comment - 19 Mar 2026

Does it also happen in 5.4?

avatar drmenzelit
drmenzelit - comment - 19 Mar 2026

No, 5.4 is ok

avatar Fedik
Fedik - comment - 19 Mar 2026

It sounds like https://github.com/Choices-js/Choices bug, not Joomla.
But need to test on standalone choices.js, outside Joomla to be sure.

avatar brianteeman
brianteeman - comment - 19 Mar 2026

Joomla 5.4 uses choices 9.1
Joomla 6.0 uses choices 11.1

choices 11.2 contains a lot of bug fixes. Maybe that is the fix required

avatar richard67
richard67 - comment - 19 Mar 2026

Joomla 5.4 uses choices 9.1 Joomla 6.0 uses choices 11.1

choices 11.2 contains a lot of bug fixes. Maybe that is the fix required

That could indeed be.

One could make a PR for the 6.0-dev branch to update choices, and we could use that PR to test if that would fix it.

avatar brianteeman
brianteeman - comment - 19 Mar 2026

Just tested and Updating to choicesjs 11.2.1 does NOT fix the problem

so the problem is more likely to be with how we are using choicesjs with the changes since v9

avatar richard67
richard67 - comment - 19 Mar 2026

@brianteeman @Fedik The 11.2.0 has also added new configuration parameters searchRenderSelectedChoices and searchDisabledChoices. Maybe it needs some adjustment to that on our side?

avatar brianteeman
brianteeman - comment - 19 Mar 2026

i am sure there is lots to do on our side as there were a lot of changes since v9

avatar Fedik
Fedik - comment - 19 Mar 2026

I cannot reproduce.

Did you push enter after search?
If so, then you created a new tag, which will be saved when selected.

It is not a bug it is feature.

avatar brianteeman
brianteeman - comment - 19 Mar 2026
chrome_TneSRzJSuv.mp4
avatar brianteeman
brianteeman - comment - 19 Mar 2026

That video was made with choice 11.2.1

Image
avatar drmenzelit
drmenzelit - comment - 19 Mar 2026

@Fedik

Did you push enter after search?

No, only type a word and delete it again

avatar Fedik
Fedik - comment - 19 Mar 2026

Thanks for video, I looked for different thing.

I see now it is related to AJAX search.

avatar brianteeman
brianteeman - comment - 19 Mar 2026

Yes sorry never even thought about that. I can confirm this bug is only present when tags is set to use ajax - it is fine when set to nested

avatar Fedik
Fedik - comment - 19 Mar 2026

Please test #47426

avatar tecpromotion tecpromotion - change - 20 Mar 2026
Status New Closed
Closed_Date 0000-00-00 00:00:00 2026-03-20 08:24:59
Closed_By tecpromotion
avatar tecpromotion tecpromotion - close - 20 Mar 2026

Add a Comment

Login with GitHub to post a comment