We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 953cf3d + 6873c8b commit 2c3c960Copy full SHA for 2c3c960
src/selectize.js
@@ -1752,6 +1752,7 @@ $.extend(Selectize.prototype, {
1752
self.$input
1753
.html('')
1754
.append(revertSettings.$children)
1755
+ .removeAttr('tabindex')
1756
.attr({tabindex: revertSettings.tabindex})
1757
.show();
1758
test/api.js
@@ -549,6 +549,11 @@
549
expect(test.$select.html()).to.be.equal(children);
550
expect(test.$select.attr('tabindex')).to.be.equal('9999');
551
});
552
+ it('should remove tabindex if it was originally undefined', function() {
553
+ var test = setup_test('<select>', {});
554
+ test.selectize.destroy();
555
+ expect(test.$select.attr('tabindex')).to.be.equal(undefined);
556
+ });
557
558
559
0 commit comments