claviska/jquery-selectBox — Issue #55: Redundant setting of label text?
Author: Nettsentrisk
Created: 2012-01-18 18:38:32+00:00
State: open

Hi, I've been hacking the usage of this plugin a little bit to be able to have some custom text showing up in the dropdown menu. Everything works fine, except when you click the option that is currently selected, the setting of the label gets to be all wrong. Other than that, it works fine.

On line 472, you have the following:

if( control.hasClass('selectBox-dropdown') ) {
control.find('.selectBox-label').text(li.text());
}

Isn't this redundant with the firing of the setLabel function through selectOption() ?

I've removed those lines now, and it doesn't seem to have mattered at all - and now it works fine!