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:
parent
cd40ab5084
commit
6c70d7abf5
2 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ const UserProfilesPage: FunctionComponent = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
page.addEventListener('click', function (e) {
|
page.addEventListener('click', function (e) {
|
||||||
const btnUserMenu = dom.parentWithClass(e.target, 'btnUserMenu');
|
const btnUserMenu = dom.parentWithClass(e.target as HTMLElement, 'btnUserMenu');
|
||||||
|
|
||||||
if (btnUserMenu) {
|
if (btnUserMenu) {
|
||||||
showUserMenu(btnUserMenu);
|
showUserMenu(btnUserMenu);
|
||||||
|
|
|
@ -44,7 +44,7 @@ const SearchFields: FunctionComponent<SearchFieldsProps> = ({ onSearch = () => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getSearchInput()?.addEventListener('input', e => {
|
getSearchInput()?.addEventListener('input', e => {
|
||||||
debouncedOnSearch(normalizeInput(e.target?.value));
|
debouncedOnSearch(normalizeInput((e.target as HTMLInputElement).value));
|
||||||
});
|
});
|
||||||
getSearchInput()?.focus();
|
getSearchInput()?.focus();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue