Skip to content
This repository

Flip toggle switch - Doesnt refresh with new value when disabled #2756

Closed
madaz opened this Issue · 2 comments

3 participants

Adam Jasper de Groot John Bender
Adam

Cant update a flip toggle switch when it is disabled from code.

I am using the flip toggle switch as a nice UI for a list of readonly settings, some settings can change by browser events so I need to update the UI.

Workaround:

Enable, set value, refresh, then disable

$('#slider').slider('enable').val('on').slider('refresh').slider('disable')

Gabriele Rabbiosi redaemn referenced this issue from a commit in redaemn/jquery-mobile
Gabriele Rabbiosi Issue #2756 - flip toggle switch value can be changed when the switch…
… is disabled
396f8d0
John Bender

@4fa6ccd

That's the offending commit according to a quick git bisect. I'll take a look tomorrow though it may result in reverting the previous addition.

Timmy Willison timmywil referenced this issue from a commit in timmywil/jquery-mobile
Gabriele Rabbiosi Issue #2756 - flip toggle switch value can be changed when the switch…
… is disabled
d427e3b
Jasper de Groot
Owner

The changes haven't been reverted so I am closing as fixed.

Jasper de Groot uGoMobi closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.