Browse Source

move to the top after clicking link

master
Marek Piasecki 1 year ago
parent
commit
77b1857786
  1. 2
      src/router_tag.imba

2
src/router_tag.imba

@ -18,7 +18,7 @@ tag pro-ref-f < a # f - forget current params in new destination
def render
let link = go || url
<self[d:inline].active=(R.to_path! == link) href=link @click.prevent=R.go(link)><slot>
<self[d:inline].active=(R.to_path! == link) href=link @click.prevent=(R.go(link); window.scrollTo(0,0))><slot>
get url
R.to_path view, params

Loading…
Cancel
Save