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] Placeholder text does not show when allowAdditions is true #3127

Open
GammaGames opened this issue Nov 21, 2024 · 2 comments
Open
Assignees
Labels
tag/next-release/nightly Any issue which has a corresponding PR which has been merged and is available in the nightly build type/bug Any issue which is a bug or PR which fixes a bug
Milestone

Comments

@GammaGames
Copy link
Contributor

Bug Report

Steps to reproduce

  1. Create a dropdown with js, setting allowAdditions to true
  2. Placehodler text does not show up

Expected result

image

Actual result

image

Testcase

https://jsfiddle.net/mkov7swt/

Version

2.9.3

@GammaGames
Copy link
Contributor Author

Workaround is to set the setting after initialization:

$("#first_dropdown").dropdown({
  placeholder: `This text should show up`,
  values: []
}).dropdown("setting", "allowAdditions", true);

https://jsfiddle.net/ztLwuanr/

@lubber-de
Copy link
Member

Fixed by #3128
See your adjusted jsfiddle here https://jsfiddle.net/lubber/ws65erf2/12/

@lubber-de lubber-de added the type/bug Any issue which is a bug or PR which fixes a bug label Nov 22, 2024
@lubber-de lubber-de added this to the 2.9.4 milestone Nov 22, 2024
@lubber-de lubber-de added the state/has-pr An issue which has a related PR open label Nov 22, 2024
@lubber-de lubber-de added tag/next-release/nightly Any issue which has a corresponding PR which has been merged and is available in the nightly build and removed state/has-pr An issue which has a related PR open labels Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag/next-release/nightly Any issue which has a corresponding PR which has been merged and is available in the nightly build type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

No branches or pull requests

2 participants