This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-05
Channels
- # announcements (1)
- # aws (6)
- # babashka (8)
- # beginners (22)
- # cider (12)
- # clj-kondo (1)
- # cljdoc (15)
- # clojure (109)
- # clojure-dev (6)
- # clojure-europe (40)
- # clojure-losangeles (5)
- # clojure-uk (1)
- # clojurescript (28)
- # data-oriented-programming (3)
- # datahike (9)
- # datalevin (9)
- # holy-lambda (2)
- # juxt (5)
- # lsp (4)
- # malli (2)
- # meander (1)
- # missionary (5)
- # nextjournal (3)
- # off-topic (17)
- # reagent (1)
- # reitit (8)
- # releases (1)
- # sci (16)
- # shadow-cljs (7)
- # sql (9)
- # tools-deps (9)
- # transit (1)
How can I turn reitit-frontend off for certain links? I want them to have an href, but I want reitit NOT to touch things
I can't seem to get preventDefault or preventPropogation to do it
usecase: this is for opening modals
Curious: why use a link (a tag) for this? Note: im coming from an accessibility/semantic perspective.
Reitit manual has sample code for this: https://cljdoc.org/d/metosin/reitit/0.5.15/doc/frontend/browser-integration#anchor-click-handling
@U6GNVEWQGa tag is for browser semantics. It plays correctly with screen readers, shows the target URL (allowing regular browser interactions like "copy link"), and allows for a graceful fall-back in the case of limited JS support.
@UTFAPNRPT thanks! I can work with that! Looks like it is a control handled from the router rather than from the link itself, but it a good starting point.
Hey @U0D6ZHHGS While trying to solve some other problem I just stumbled across your issue https://github.com/metosin/reitit/issues/525 and copied above answer into it, in case someone else is having the same problem 🙂 I hope you don’t mind.