Browse Source

move to the top after clicking link

master
Marek Piasecki 2 years 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 def render
let link = go || url 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 get url
R.to_path view, params R.to_path view, params

Loading…
Cancel
Save