1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix Event.target TypeScript errors

This commit is contained in:
Dmitry Lyzo 2022-02-16 00:45:59 +03:00
parent cd40ab5084
commit 6c70d7abf5
2 changed files with 2 additions and 2 deletions

View file

@ -113,7 +113,7 @@ const UserProfilesPage: FunctionComponent = () => {
};
page.addEventListener('click', function (e) {
const btnUserMenu = dom.parentWithClass(e.target, 'btnUserMenu');
const btnUserMenu = dom.parentWithClass(e.target as HTMLElement, 'btnUserMenu');
if (btnUserMenu) {
showUserMenu(btnUserMenu);

View file

@ -44,7 +44,7 @@ const SearchFields: FunctionComponent<SearchFieldsProps> = ({ onSearch = () => {
useEffect(() => {
getSearchInput()?.addEventListener('input', e => {
debouncedOnSearch(normalizeInput(e.target?.value));
debouncedOnSearch(normalizeInput((e.target as HTMLInputElement).value));
});
getSearchInput()?.focus();