dubbs / bootstrap-select-to-button

MIT License
0 stars 1 forks source link

Manipulating selected item in underlying select should update the state of the button #1

Closed cammchugh closed 8 years ago

cammchugh commented 8 years ago

When changing the selected value of the select list, the button state is not updated to reflect the new value of the select list. I might be missing something, but the documentation is currently a bit light, so apologies if this is already supported.

dubbs commented 8 years ago

You're right, I plan on adding update handlers for whenever the underlying select changes, eg:

$('select').prop('disabled', true);
$('select option:eq(0)').prop('selected', true);
cammchugh commented 8 years ago

Awesome, thanks.

dubbs commented 8 years ago

fixed by #2