angular-multi-select icon indicating copy to clipboard operation
angular-multi-select copied to clipboard

IE10 issue when helper-elements = ""

Open jamminjime opened this issue 7 years ago • 0 comments

I have spent several hours trying to figure this out. Here is the information that I know.

I am using bootstrapping at the end of my CSHTML file to connect the AngularJS v1.5.9 to the isteven-multi-select v4.0.0. I have 12 of these controls on the page and 7 of them work as designed without any issue. The 5 that are failing have no helper methods assigned to them.

In IE 10, there appears to be an issue with the control when you have no helper methods attached. I have tried with and without spaces between the quote marks. This does not happen in Chrome.

The first time you click on the button to drop down the item list, it throws an error in isteven-multi-select.js. Here is the output of the first 2 lines of the exception.

TypeError: Unable to get property 'focus' of undefined or null reference

at $scope.toggleCheckboxes (<myserver>/js/isteven-multi-select.js:674:31)

If you attempt to click on a menuItem, you get the following exception. Again, just the first 2 lines.

TypeError: Unable to set property 'checked' of undefined or null reference

at $scope.syncItems (<myserver>/js/isteven-multi-select.js:433:21)

NOW, If you click on the dropdown again, it works fine. You can select items and the models are updated accordingly.

The workarounds for this in IE10 are to perform one of the following actions:

  1. LEAST INVASIVE - Add helper-properties="filter" at a minimum. I have had hit/miss success with adding "all" and "none". "filter" always works and the errors disappear.
  2. MODIFYING YOUR JS - Comment out line 675. This prevents the scripts from throwing any exceptions and allows normal processing (as far as I can see) to continue. Object models are still updated and UI functions normally. Line 433 no longer errors out here.

I hope that this information is useful to you and, if you get some spare time, that you can correct this. If you don't, I have at least provided your readers with 2 options to get past the issue until you/they fix it.

Thanks for a great control!

jamminjime avatar Dec 08 '16 20:12 jamminjime