File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
- import { css , html , LitElement } from 'lit' ;
2
1
import { defineElement } from '@umbraco-ui/uui-base/lib/registration' ;
2
+ import { css , html , LitElement } from 'lit' ;
3
3
import { property , state } from 'lit/decorators.js' ;
4
+
4
5
import { UUISelectEvent } from './UUISelectEvent' ;
5
6
6
7
// TODO: Dont set a global interface, we should expose a 'local' interface.
@@ -231,13 +232,13 @@ export class UUISelectElement extends LitElement {
231
232
private _extractGroups ( ) {
232
233
if ( this . options . length === 0 ) return ;
233
234
234
- this . _groups = [
235
- ... new Set (
235
+ this . _groups = Array . from (
236
+ new Set (
236
237
this . options
237
238
. filter ( option => option . group )
238
239
. map ( option => option . group as string )
239
- ) ,
240
- ] ;
240
+ )
241
+ ) ;
241
242
}
242
243
243
244
willUpdate ( changedProperties : Map < string | number | symbol , unknown > ) {
You can’t perform that action at this time.
0 commit comments