fix(web): Places and Things thumbnail cannot be clicked (#3133)

* fix(web): Places and Things thumbnail cannot be clicked

* fix openapi

* fix test
pull/3145/head
Alex 2023-07-06 17:34:15 +07:00 committed by GitHub
parent 6588bb3d79
commit d064477a45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

@ -44,16 +44,15 @@
return [235, 235]; return [235, 235];
})(); })();
const thumbnailClickedHandler = (e: Event) => { const thumbnailClickedHandler = () => {
if (!disabled) { if (!disabled) {
e.preventDefault();
dispatch('click', { asset }); dispatch('click', { asset });
} }
}; };
const thumbnailKeyDownHandler = (e: KeyboardEvent) => { const thumbnailKeyDownHandler = (e: KeyboardEvent) => {
if (e.key === 'Enter') { if (e.key === 'Enter') {
thumbnailClickedHandler(e); thumbnailClickedHandler();
} }
}; };