Skip to content

Commit 30c25f0

Browse files
authored
fix(module:autocomplete): remove inline style (CSP compliant) (#8875)
1 parent 23eab98 commit 30c25f0

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

components/auto-complete/autocomplete.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ function normalizeDataSource(value: AutocompleteDataSource): AutocompleteDataSou
8181
(@slideMotion.done)="onAnimationEvent($event)"
8282
[@.disabled]="!!noAnimation?.nzNoAnimation"
8383
>
84-
<div style="max-height: 256px; overflow-y: auto; overflow-anchor: none;">
85-
<div style="display: flex; flex-direction: column;">
84+
<div class="ant-select-dropdown-content-wrapper">
85+
<div class="ant-select-dropdown-content">
8686
<ng-template *ngTemplateOutlet="nzDataSource ? optionsTemplate : contentTemplate"></ng-template>
8787
</div>
8888
</div>
+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
.ant-select-dropdown-hidden {
22
display: none;
33
}
4+
5+
.ant-select-dropdown-content-wrapper {
6+
max-height: 256px;
7+
overflow-y: auto;
8+
overflow-anchor: none;
9+
}
10+
11+
.ant-select-dropdown-content {
12+
display: flex;
13+
flex-direction: column;
14+
}

0 commit comments

Comments
 (0)