vanderlee / tristate

jQuery standalone tristate (indeterminate) checkbox with pseudo selectors and optional value modification and .val() overwrite. Standalone, so usable for purposes other than list/tree marking.

Home Page:http://vanderlee.github.io/tristate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

With IE a tristate have 4 states.

bckfnn opened this issue · comments

Thanks for creating this plugin.

In IE (tested with 10 & 11) I need 4 clicks on a tristate checkbox in order to cycle trough the 3 values.

It is reproduceable in your 'Alternative values; "Good", "Maybe", "Bad"' example on http://vanderlee.github.io/tristate/

In each mouse click I get:
Good - with checkmark
Maybe - with indeterminate mark
Maybe - with unchecked mark
Bad - with unchecked mark.

It seems like IE does not fire a change event in all cases.

Just tested IE10 and I see the 4-clicks too.
I'll try and see what I can do, but I'm not particularly used to debugging JS in IE10.

You were 100% right about IE not firing the change event as other browsers.
The fix was simple enough; just trigger on the click event instead of change.
Work fine on IE10, FF, Chrome and Opera.
I've pushed v1.0.5 to github.

Could you please check it and close this issue if it's fixed? Thanks!

Perfect! Thank you.