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

placeholderOption & placeholder breaks SOD on mobile devices #22

Open
PawelGIX opened this issue Oct 31, 2014 · 4 comments
Open

placeholderOption & placeholder breaks SOD on mobile devices #22

PawelGIX opened this issue Oct 31, 2014 · 4 comments
Labels

Comments

@PawelGIX
Copy link

placeholderOption & placeholder settings don't allow me chose any option. When field lose focus widget back to placeholder.
Tested on android & chrome emulator

@vestman vestman added the bug label Nov 21, 2014
@vestman
Copy link
Owner

vestman commented Nov 21, 2014

Sorry for the late reply, @PawelGIX.

I'm aware of this issue. The actual tapped value is still selected, it's just the placeholder that doesn't update correctly. I'll take a look at it during the weekend!

@plapcity
Copy link

Are there any updates on this issue? Seeing it happen on my site.

@socki03
Copy link

socki03 commented Sep 29, 2015

I managed to "fix" this with a jQuery change function outside the initial SoD call. Please, if you see a better way to do this or refactor it, feel free, this was my quick 10 minute fix:

$('.sod_select.touch .sod').change(function() {
    var newValue = $(this).find('option:selected').val();
    $('.sod_option.selected.active').removeClass('selected active');
    $('.sod_option[data-value="'+newValue+'"]').addClass('selected active');
});

Note that .sod was the class I'd added to my SoD selects

@joekla
Copy link

joekla commented Mar 3, 2020

@jherencia has fixed this issue #21

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

No branches or pull requests

5 participants