Skip to content

[5.3] - Fancy-select multiple field no longer hides selected items #45536

Closed
@travisrisner

Description

@travisrisner

Steps to reproduce the issue

  • Go to Users -> User Actions Log -> Options
  • Clear everything in the "Events To Log" select
  • Go back through the list and try to add them all again

Expected result

  • As one is selected it should be removed from the list to make it easier on the user to determine what is already selected

Actual result

  • Selected items remain in the list

Additional comments

Before Joomla 5.3.1, selected items in the multiselect (rendered with Choices.js) were removed from the list as they were chosen. This made the interface much more intuitive and easier to navigate.

The change appears to stem from PR #45365, which introduced the renderSelectedChoices: 'always' option. While this is beneficial in scenarios where child/parent relationships are shown (e.g., nested categories), it has unintentionally reduced usability in standard flat multiselects like this.

Is there a middle ground? The current behavior is functional, but not ideal. In the meantime, applying a small CSS tweak can improve visual clarity for selected items:

.choices__list--dropdown .choices__item--choice.is-selected::after {
  content: " ✓";
  color: green;
  margin-left: 0.5em;
  font-weight: bold;
  display: inline-block;
  opacity: 1 !important;
  visibility: visible !important;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions