Monorepo for Tangled tangled.org
856
fork

Configure Feed

Select the types of activity you want to include in your feed.

appview/pages: fix element cleanup in permalink shortcut #319

open opened by oppi.li targeting master from op/sxolltqksvuo
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.pull/3mkzdnss3ba22
+4 -1
Diff #0
+4 -1
appview/pages/templates/repo/fragments/permalinkShortcut.html
··· 3 3 (() => { 4 4 {{ if .LastCommitInfo }} 5 5 const abortController = new AbortController(); 6 + const scriptEl = document.currentScript; 6 7 document.addEventListener('keydown', (e) => { 7 8 if(e.key === 'y' && !e.ctrlKey && !e.metaKey && !e.altKey) { 8 9 if(e.target.tagName === 'INPUT' || e.target.tagName === 'TEXTAREA') return; ··· 12 13 }, {signal: abortController.signal}); 13 14 14 15 document.body.addEventListener('htmx:beforeCleanupElement', (e) => { 15 - abortController.abort(); 16 + if(e.target === scriptEl) { 17 + abortController.abort(); 18 + } 16 19 }, {signal: abortController.signal}); 17 20 {{ end }} 18 21 })();

History

1 round 0 comments
sign up or login to add to the discussion
oppi.li submitted #0
1 commit
expand
appview/pages: fix element cleanup in permalink shortcut
merge conflicts detected
expand
  • knotmirror/xrpc/git_get_tree.go:13
expand 0 comments