mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
use forEach instead of map; fixes #740
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user