Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shadoWalker89 opened this issue Mar 19, 2018 · 3 comments
Open

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

shadoWalker89 opened this issue Mar 19, 2018 · 3 comments
Milestone

Comments

@shadoWalker89
Copy link

shadoWalker89 commented Mar 19, 2018

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/

@y0hami
Copy link
Member

y0hami commented Mar 19, 2018

I can't see why this would be happening but to fix it if the values are semantic size class names you can add medium as the value it won't affect the size when added to a table.

@shadoWalker89
Copy link
Author

@hammy2899 I updated the issue with a second case.
I didn't want to create issue since they are related

@lubber-de

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants