mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix eslint warnings in ts files
This commit is contained in:
parent
097471863e
commit
8f730b8270
5 changed files with 14 additions and 8 deletions
|
@ -126,7 +126,7 @@ const Scroller: FC<ScrollerProps> = ({
|
|||
}, [getScrollPosition, getScrollSize, getScrollWidth]);
|
||||
|
||||
const initCenterFocus = useCallback((elem: EventTarget, scrollerInstance: scrollerFactory) => {
|
||||
dom.addEventListener(elem, 'focus', function (e: { target: any; }) {
|
||||
dom.addEventListener(elem, 'focus', function (e: FocusEvent) {
|
||||
const focused = focusManager.focusableParent(e.target);
|
||||
if (focused) {
|
||||
scrollerInstance.toCenter(focused, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue