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

classic mode without selected breaks plugin #10

Closed
thadmiller opened this issue Aug 30, 2018 · 3 comments
Closed

classic mode without selected breaks plugin #10

thadmiller opened this issue Aug 30, 2018 · 3 comments

Comments

@thadmiller
Copy link

When classic property is true, applying the prettydropdown to a that does not have an with the selected attribute, the plugin renders an unusable empty box. It's easy to work around (for my situation anyway), but like the built in , I think the plugin should default to selecting the first item if one is not selected - or, at minimum, at least allow the dropdown to function.

@thadmiller
Copy link
Author

Actually... it's not an issue of not having an with the selected attribute, the issue presents when the selected (or first in the list, if none are selected) does not have a value. It's fairly common to have something like <option value="">None</option> or <option value="">Select an option...</option> but these don't work when the classic property is set to true.

@thdoan
Copy link
Owner

thdoan commented Sep 7, 2018

Thanks for reporting this. It has been fixed in v4.13.0.

@thdoan thdoan closed this as completed Sep 7, 2018
@thadmiller
Copy link
Author

Confirmed this works; thanks!

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

No branches or pull requests

2 participants