You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using ASP.NET MVC 4 with Bootstrap v3.3.7. I am having issues with tabbing inside of IE 11 but not Firefox. In IE11 the tabbing will go to the selectize attached dropdown element, and then reset to the first tabbed item on further tabbing. This will repeat when tabbing starts on an item preceding the selectize attached item. Investigating, I noticed inside IE11 the tabindex was set to -32768.
I did try the fix from #877 on an older version I had gotten off NUGET, and this did not fix my probem. This issues seems to happen with the latest version and older versions of the standalone selectize.js script.
This is a snapshot from the DOM Explorer in IE 11:
I noticed in Firefox the tabindex value inside the same div was set to empty (tabindex="").
I was able to get it working by making the change below:
/**
* Completely destroys the control and
* unbinds all event listeners so that it can
* be garbage collected.
*/
destroy: function() {
var self = this;
var eventNS = self.eventNS;
var revertSettings = self.revertSettings;
self.trigger('destroy');
self.off();
self.$wrapper.remove();
self.$dropdown.remove();
self.$input
.html('')
.append(revertSettings.$children)
.removeAttr('tabindex')
.removeClass('selectized')
//IE11 BUG FIX
//.attr({tabindex: revertSettings.tabindex})
.attr({tabindex: ""})
.show();
self.$control_input.removeData('grow');
self.$input.removeData('selectize');
$(window).off(eventNS);
$(document).off(eventNS);
$(document.body).off(eventNS);
delete self.$input[0].selectize;
},
This resolved my issue and works perfectly on IIS for both IE11 and Firefox.
I tried duplicating this on JSFiddle and could not as it is too complex to duplicate the environment this issue is happening in. The current layout I am using is a bootstrap navbar, tabbed menu, and a grid to structure the form; my form is in a partial view.
The text was updated successfully, but these errors were encountered:
eaglei22
changed the title
in IE11 tabindex element with selectize-control is set to very large negative number preventing further tabbing
IE11 tabindex inside selectize-control element is to large negative number. Causes tabbing issues
Mar 6, 2017
eaglei22
changed the title
IE11 tabindex inside selectize-control element is to large negative number. Causes tabbing issues
IE11 tabindex inside selectize-control element is set to large negative number. Causes tabbing issues
Mar 6, 2017
closing stale issues older than one year.
If this issue was closed in error please message the maintainers.
All issues must include a proper title, description, and examples.
I am using ASP.NET MVC 4 with Bootstrap v3.3.7. I am having issues with tabbing inside of IE 11 but not Firefox. In IE11 the tabbing will go to the selectize attached dropdown element, and then reset to the first tabbed item on further tabbing. This will repeat when tabbing starts on an item preceding the selectize attached item. Investigating, I noticed inside IE11 the tabindex was set to -32768.
I did try the fix from #877 on an older version I had gotten off NUGET, and this did not fix my probem. This issues seems to happen with the latest version and older versions of the standalone selectize.js script.
This is a snapshot from the DOM Explorer in IE 11:
I noticed in Firefox the tabindex value inside the same div was set to empty (tabindex="").
I was able to get it working by making the change below:
This resolved my issue and works perfectly on IIS for both IE11 and Firefox.
I tried duplicating this on JSFiddle and could not as it is too complex to duplicate the environment this issue is happening in. The current layout I am using is a bootstrap navbar, tabbed menu, and a grid to structure the form; my form is in a partial view.
The text was updated successfully, but these errors were encountered: