Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selectize does not seem to work in IE11 with older angular versions #177

Open
mhording opened this issue Jul 26, 2018 · 3 comments
Open

Comments

@mhording
Copy link

mhording commented Jul 26, 2018

Upgrading angular is not an option here.

The setup includes
"angular": "1.5.8",
"selectize": "^0.12.4",
"angular-selectize2": "1.2.3"
"jquery": "2.1.4",

The directive seems to be working in almost every other browser with this setup, including Edge, but fails in IE11.

The error I am getting in IE11 is

Error: Invalid argument.
at setup (http://wfcontent-dev.local/wf/libs.js?ver=3.12.0-alpha:67555:13494)
at w (http://wfcontent-dev.local/wf/libs.js?ver=3.12.0-alpha:67555:11805)
at Anonymous function (http://wfcontent-dev.local/wf/libs.js?ver=3.12.0-alpha:67556:8093)
at each (http://wfcontent-dev.local/wf/shims.js?ver=3.12.0-alpha:374:6)
at jQuery.prototype.each (http://wfcontent-dev.local/wf/shims.js?ver=3.12.0-alpha:139:3)
at a.fn.selectize (http://wfcontent-dev.local/wf/libs.js?ver=3.12.0-alpha:67556:7803)
at link (http://wfcontent-dev.local/wf/libs.js?ver=3.12.0-alpha:67683:3)
at Anonymous function (http://wfcontent-dev.local/wf/libs.js?ver=3.12.0-alpha:14677:11)
at Anonymous function (http://wfcontent-dev.local/wf/libs.js?ver=3.12.0-alpha:23359:34)
at invokeLinkFn (http://wfcontent-dev.local/wf/libs.js?ver=3.12.0-alpha:23365:9) <selectize class="ng-pristine ng-untouched ng-valid ng-isolate-scope" ng-model="$ctrl.question.value" ng-disabled="!$ctrl.editable" ng-change="$ctrl.c

If i try the plunk however, it seems to be working just fine.

@vldolot
Copy link

vldolot commented Aug 21, 2018

I had this same issue in IE11 and the resolution I did was to replace the

<selectize
    options="..."
    config="..."
    ...
>
  ...
</selectize>

element with:

<input
    selectize
    type="text"
    options="..."
    config="..."
    ... 
/>

@mhording
Copy link
Author

It seems the bug was caused by a version conflict and that someone silently updatet some css in the package. Setting the selectize package to explicitly use
"selectize": "0.12.4", rather than
"selectize": "^0.12.4",

apparantly fixed the problem. No need to change any code.

@adlh
Copy link

adlh commented Nov 5, 2018

@mhording thanks! Pinning the version to 0.12.4 fixed the problem for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants