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

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

* fix openapi

* fix test
This commit is contained in:
Alex 2023-07-06 17:34:15 -05:00 committed by GitHub
parent 6588bb3d79
commit d064477a45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
} }
}; };