From d8dbbdad173baafe73acc98e6427c468fd3e13cc Mon Sep 17 00:00:00 2001 From: Steve Hart Date: Fri, 25 Mar 2022 16:33:34 -0400 Subject: 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. --- haddock-api/resources/html/js-src/details-helper.tsx | 1 - 1 file changed, 1 deletion(-) (limited to 'haddock-api/resources/html/js-src') 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() { //
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(); -- cgit v1.2.3