I am using Select2 version 3.4.8 and recently noticed that the code adds a title attribute to each form control on my page, using the associated label text for the title . I assume that the developers of Select2 meant it as an improvement in accessibility, but this is a dubious choice, since there is already a related label .
I am looking for a way to disable this without fixing select2.js directly. I looked through the documentation and found nothing. Is there a way to do this, or do I need to either schedule select2.js (maybe comment line 692) or write some script lines to remove the title attributes after they have been added to the .select2-container divs? (Or is it fixed in version 3.5.0?)
source share