File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 286
286
) as SMUIListItemAccessor [];
287
287
}
288
288
289
- function focusItemAtIndex(index : number ) {
290
- const accessor = getOrderedList ()[index ];
291
- accessor &&
292
- ' focus' in accessor .element &&
293
- (accessor .element as HTMLInputElement ).focus ();
294
- }
295
-
296
289
function listItemAtIndexHasClass(index : number , className : string ) {
297
290
const accessor = getOrderedList ()[index ];
298
291
return (accessor && accessor .hasClass (className )) ?? false ;
371
364
return instance .getFocusedItemIndex ();
372
365
}
373
366
367
+ export function focusItemAtIndex(index : number ) {
368
+ const accessor = getOrderedList ()[index ];
369
+ accessor &&
370
+ ' focus' in accessor .element &&
371
+ (accessor .element as HTMLInputElement ).focus ();
372
+ }
373
+
374
374
export function getElement(): Element {
375
375
return element .getElement ();
376
376
}
You can’t perform that action at this time.
0 commit comments