This repository has been archived by the owner on Oct 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
CSP inline style error when using ui-select #2025
Comments
Hi, did you solve this issue? I have the same problem but i don´t know how to solve it. |
Hi @jcmorenoruiz - I think you can simply just remove the inline style attributes that I specified above from the ui-select file you are using if you don't want them (the styles there already aren't being applied due to the ng-csp directive). If you actually want to keep these styles, you can move them into a style sheet and apply them using class. |
evilaliv3
added a commit
to evilaliv3/ui-select
that referenced
this issue
Aug 18, 2019
@corbinolds @jcmorenoruiz: in the above commit you find the proper patch. |
evilaliv3
added a commit
to globaleaks/globaleaks-whistleblowing-software
that referenced
this issue
Aug 18, 2019
evilaliv3
added a commit
to globaleaks/globaleaks-whistleblowing-software
that referenced
this issue
Aug 18, 2019
evilaliv3
added a commit
to globaleaks/globaleaks-whistleblowing-software
that referenced
this issue
Aug 18, 2019
evilaliv3
added a commit
to globaleaks/globaleaks-whistleblowing-software
that referenced
this issue
Aug 18, 2019
evilaliv3
added a commit
to globaleaks/globaleaks-whistleblowing-software
that referenced
this issue
Aug 18, 2019
evilaliv3
added a commit
to globaleaks/globaleaks-whistleblowing-software
that referenced
this issue
Aug 18, 2019
evilaliv3
added a commit
to globaleaks/globaleaks-whistleblowing-software
that referenced
this issue
Aug 19, 2019
evilaliv3
added a commit
to globaleaks/globaleaks-whistleblowing-software
that referenced
this issue
Aug 19, 2019
evilaliv3
added a commit
to globaleaks/globaleaks-whistleblowing-software
that referenced
this issue
Aug 19, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We are seeing two inline styles being applied when using the ui select directive, specifically with the ui-select-match directive. We are using the ng-csp directive at the top level and that is stopping inline styles. This error is happening on line 2888 of angular.js in version 1.5.8 (See tmp.innerHTML = wrap[1] + html.replace(XHTML_TAG_REGEXP, "<$1></$2>") + wrap[2];) We are using version 0.19.5 of ui select.
Here is a console stack trace:
After some digging, it looks like there are two inline styles being applied in the match.tpl.html file and one inline style being applied in the select-multiple.tpl.html file.
For the match.tpl.html file:
For the select-multiple.tpl.html file:
The text was updated successfully, but these errors were encountered: