Update doc/frontend/browser.md

Co-Authored-By: Deraen <juho.teperi@iki.fi>
This commit is contained in:
Miikka Koskinen 2019-05-02 11:52:13 +03:00 committed by GitHub
parent 51c5aad492
commit f8f44b9ea6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ HTML5 History router will handle click events on anchors where the href
matches the route tree (and other [rules](../../modules/reitit-frontend/src/reitit/frontend/history.cljs#L84-L98)). matches the route tree (and other [rules](../../modules/reitit-frontend/src/reitit/frontend/history.cljs#L84-L98)).
If you have need to control this logic, for example to handle some If you have need to control this logic, for example to handle some
anchor clicks where the href matches route tree normally (i.e. browser load) anchor clicks where the href matches route tree normally (i.e. browser load)
you can provide `:ignore-anchor-click` function to add your own logic to you can provide `:ignore-anchor-click?` function to add your own logic to
event handling: event handling:
```clj ```clj