Skip to content

[dropdown] Wrong placeholder, even when placeholder is false #6285

@shadoWalker89

Description

@shadoWalker89

Case 1

I have the placeholder set to false and the action to hide
I have an option in the dropdown the one with the text medium that has an empty value

Expected Result

The placeholder should be Table size as i did put in the .text span

Actual Result

The actual text shown is Medium which is the text of the empty option

Version

2.3.0

Testcase

https://jsfiddle.net/jk0abk4f/1/

Case 2

I have the placeholder set to false and the action to hide
I set the value of the selected item as the value of the value attribute on the hidden input

Expected Result

The placeholder should be Table size as i did put in the .text span

Actual Result

The actual text shown is Small which is the text matching the option (.item) with the small value

Version

2.3.0

Testcase

https://jsfiddle.net/raynr3c7/1/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions