Skip to content

CMultiSelect with multiple={false} inserts selected value as placeholder #427

@niksajanjic

Description

@niksajanjic

This is PRO feature, but I don't have access to PRO repo therefore I created the issue here:

If we're using CMultiSelect with multiple={false} which means we only want to select one option, the selected option would be selected as a placeholder which seems to be wrong. Here's a screenshot how it looks like when multiple options are selected:
Screenshot 2025-01-08 at 16 37 37

As you can see, selected values have a nice black color.

But when you select only one option, than the placeholder is changed with selected value which doesn't make any sense to me:
Screenshot 2025-01-08 at 16 36 27
Screenshot 2025-01-08 at 16 37 00
Screenshot 2025-01-08 at 16 37 07
Screenshot 2025-01-08 at 16 37 19

In multiple selections example we have selectionType="text", and in single selection example it doesn't matter if we choose text, tags or avoid it altogether.

I see that in multiple selection we have multiple <span/> elements inside form-multi-select-selection that represent selected values and the the input at the end. And I understand in single selection we don't want one span and input after it. But the current solution with placeholder also makes no sense and it results in placeholder and selected value to be the same color. I think we should control the input through React and select input's value, not it's placeholder.

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