{
+ on:click={(e) => {
if (typeof onClick !== "undefined") {
onClick();
+ // Prevent the link inside this div from being clicked in this case.
+ e.preventDefault();
return;
}
if (posterActive && link) goto(link);
@@ -184,19 +191,15 @@
role="button"
tabindex="-1"
>
-
{
+ on:click={(e) => {
if (typeof onClick !== "undefined") {
onClick();
+ // Prevent the link inside this div from being clicked in this case.
+ e.preventDefault();
return;
}
if (posterActive && link) goto(link);
@@ -152,19 +159,15 @@
role="button"
tabindex="-1"
>
-