Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

fix(CSP): avoid inline execution of styles in match and select-multi… #2181

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/bootstrap/match.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
aria-label="{{ $select.baseTitle }} activate"
ng-disabled="$select.disabled"
ng-click="$select.activate()"
style="outline: 0;">
ng-style="{'outline': '0'}">
<span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span>
<span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{'ui-select-allow-clear': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span>
<i class="caret pull-right" ng-click="$select.toggle($event)"></i>
<a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px"
<a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" ng-style="{'margin-right': '10px'}"
ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right">
<i class="glyphicon glyphicon-remove" aria-hidden="true"></i>
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/select2/select-multiple.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
ng-hide="$select.disabled"
ng-model="$select.search"
ng-click="$select.activate()"
style="width: 34px;"
ng-style="{'width': '34px'}"
data-disallow-drop=data-disallow-drop>
</li>
</ul>
Expand Down