use forEach instead of map; fixes #740

This commit is contained in:
Cory LaViska
2022-05-02 07:48:43 -04:00
parent 25b6e8c2d7
commit 04bacccfea

View File

@@ -371,7 +371,7 @@ export default class SlSelect extends LitElement {
const value = this.getValueAsArray();
// Sync checked states
this.menuItems.map(item => (item.checked = value.includes(item.value)));
this.menuItems.forEach(item => (item.checked = value.includes(item.value)));
// Sync display label and tags
if (this.multiple) {