Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

defaultSelected not working #32

Closed
jcsjcs opened this issue Sep 20, 2017 · 2 comments
Closed

defaultSelected not working #32

jcsjcs opened this issue Sep 20, 2017 · 2 comments
Labels

Comments

@jcsjcs
Copy link

jcsjcs commented Sep 20, 2017

Thank you for your very useful library.

When I have:

<select name="label[px_per_mm]" id="label_px_per_mm">
  <option value="8">Low Def</option>
  <option value="12">High Def</option>
</select>

And run this:

new Selectr('#label_px_per_mm', {defaultSelected: true})

The first option (8/Low Def) is not selected as I would expect (and as per the standard select behaviour).

@Mobius1
Copy link
Owner

Mobius1 commented Sep 20, 2017

Fixed in the latest version.

@Mobius1 Mobius1 added the bug label Sep 20, 2017
@jcsjcs
Copy link
Author

jcsjcs commented Sep 20, 2017

Thank you very much!

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

No branches or pull requests

2 participants