diff options
author | Steve Hart <steve@stevehart.net> | 2022-03-25 16:33:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 21:33:34 +0100 |
commit | d8dbbdad173baafe73acc98e6427c468fd3e13cc (patch) | |
tree | 787e4e9655993904481943961b97e32825e9e4e1 /haddock-api/resources/html/js-src | |
parent | 53244da3330ada568f80e2a07b4c6fe7268c91fc (diff) |
Make links in Synopsis functional again (#1458)
Commit e41c1cbe9f0476997eac7b4a3f17cbc6b2262faf added a call to
e.preventDefault() when handling click events that reach a toggle
element. This prevents the browser from following hyperlinks within the
Synopsis section when they are clicked by a user. This commit restores
functioning hyperlinks within the Synopsis section by removing the call
to e.preventDefault(), as it does not appear to be necessary, and
removing it increases the flexibility of the details-helper code.
Diffstat (limited to 'haddock-api/resources/html/js-src')
-rw-r--r-- | haddock-api/resources/html/js-src/details-helper.tsx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/haddock-api/resources/html/js-src/details-helper.tsx b/haddock-api/resources/html/js-src/details-helper.tsx index 871b5417..411d38d7 100644 --- a/haddock-api/resources/html/js-src/details-helper.tsx +++ b/haddock-api/resources/html/js-src/details-helper.tsx @@ -407,7 +407,6 @@ function restoreToggled() { // <details> element with id given by the 'data-details-id' property // of the "toggle" element. function onToggleClick(ev: MouseEvent) { - ev.preventDefault(); const toggle = ev.currentTarget as HTMLElement; toggleDetails(toggle); storeLocalConfig(); |