Skip to content

Commit c91193e

Browse files
committed
fix
1 parent c45603f commit c91193e

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/bundle/Resources/public/ts/components/dropdown/dropdown_single_input.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ export class DropdownSingleInput extends BaseDropdown {
7676
}
7777
}
7878

79-
public setValue(rawValue: string) {
80-
const value = String(rawValue);
81-
79+
public setValue(value: string) {
8280
if (this._value === value) {
8381
return;
8482
}

src/bundle/Resources/public/ts/partials/base_dropdown/base_dropdown.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export abstract class BaseDropdown extends Base {
169169
const item = this.getItemFromNode(itemNode);
170170

171171
if (item) {
172-
this._itemsMap.set(String(item.id), item);
172+
this._itemsMap.set(item.id, item);
173173
}
174174
});
175175
}
@@ -178,7 +178,7 @@ export abstract class BaseDropdown extends Base {
178178
this._itemsMap.clear();
179179

180180
items.forEach((item) => {
181-
this._itemsMap.set(String(item.id), item);
181+
this._itemsMap.set(item.id, item);
182182
});
183183
}
184184

@@ -251,7 +251,7 @@ export abstract class BaseDropdown extends Base {
251251

252252
const nextHeight = this.calculateItemsNodeHeight();
253253

254-
this._itemsNode.style.height = `${nextHeight.toString()}px`;
254+
this._itemsNode.style.height = `${nextHeight}px`;
255255
this._itemsContainerNode.style.removeProperty('visibility');
256256
searchInput.focus();
257257
document.addEventListener('click', this.clickOutsideItemsContainerHandler);
@@ -287,7 +287,7 @@ export abstract class BaseDropdown extends Base {
287287

288288
const nextHeight = this.calculateItemsNodeHeight();
289289

290-
this._itemsNode.style.height = `${nextHeight.toString()}px`;
290+
this._itemsNode.style.height = `${nextHeight}px`;
291291
},
292292
name: 'recalculateHeight',
293293
phase: 'write' as const,

0 commit comments

Comments
 (0)