bootstrap-select icon indicating copy to clipboard operation
bootstrap-select copied to clipboard

title attribute disabled by jquery-migrate

Open agent-617 opened this issue 10 years ago • 2 comments

When utilizing jquery-migrate, the title attribute is disabled. Neither: <select class="selectpicker show-tick form-control" title="Select..."> nor $('.selectpicker').selectpicker({ title: "Select...", }); will render if <script src="jquery-migrate-1.xx.js"></script> is utilized in the stack.

agent-617 avatar Jun 09 '16 03:06 agent-617

I changed line 564 to: if (!element.options[element.selectedIndex].outerHTML.includes(" selected")) titleOption.selected = true;

This makes the title appear all the time except if an item is marked "selected" in the html. This may break other things so I won't make it a patch.

Micmaz avatar Jul 15 '16 14:07 Micmaz

Also the migrate plugin should not be used in production, it is there to help you spot migration issues.

NicolasCARPi avatar Jun 04 '21 18:06 NicolasCARPi