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:
parent
6588bb3d79
commit
d064477a45
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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue