@samitouri / QOSami-HFS / commits / 72d9754b

fix: id #zip-button moved to <a> wrapper

Massimo Melina committed May 16, 2024 at 20:47 UTC 72d9754b16b90d993b7de220ccda52710a64d42a
1 file changed +2 -1
frontend/src/menu.ts
+2 -1
@@ -152,11 +152,12 @@ export function MenuPanel() {
152 }
153 }
154
155 -export function MenuLink({ href, target, confirm, confirmOptions, ...rest }: BtnProps & { href: string, target?: string, confirm?: string, confirmOptions?: ConfirmOptions }) {
155 +export function MenuLink({ href, target, confirm, confirmOptions, id, ...rest }: BtnProps & { href: string, target?: string, confirm?: string, confirmOptions?: ConfirmOptions }) {
156 return h('a', {
157 tabIndex: -1,
158 href,
159 target,
160 + id,
161 async onClick(ev) {
162 if (!confirm) return
163 ev.preventDefault()