Skip to content

Commit

Permalink
scroll to hasklink after new data loads
Browse files Browse the repository at this point in the history
using x-init.  didn't expect this to work but it does ¯\_(ツ)_/¯
closes alifeee/firefox-bookmarks#2
  • Loading branch information
alifeee committed Nov 25, 2023
1 parent cf4e103 commit 84dd330
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bookmarks/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ <h2>Collections</h2>
:key="folder_name"
>
<div id="bookmarks">
<h2 :id="folder_name" x-text="folder_name"></h2>
<h2
:id="folder_name"
x-text="folder_name"
x-init="window.location.hash = window.location.hash"
></h2>
<ul>
<template x-for="bookmark in folder_contents" :key="bookmark.url">
<li>
Expand Down

0 comments on commit 84dd330

Please sign in to comment.