impr: use native forms instead of submit events

This commit is contained in:
Xylight committed 2024-11-10 13:34:28 -08:00
1 parent 3ebb46e37d
commit 4771d343e6
6 files changed
+27 -22

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@
onclick={() => goto(pin.url)}
alignment="center"
selected={`${$page.url.pathname}${$page.url.search}` == pin.url}
on:contextmenu={(e) => {
oncontextmenu={(e) => {
e.preventDefault()
settings.dock.pins = settings.dock.pins.toSpliced(
settings.dock.pins.findLastIndex((p) => pin.url == p.url),
@@ -40,8 +40,6 @@
alignment="left"
{...rest}
{href}
onclick
on:contextmenu
class="font-normal block !origin-left border border-transparent {!selected
? 'text-slate-600 dark:text-zinc-400'
: ''} {clazz}"