Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix collapsed packages when navigate to vulnerability page (#2198)
Issue: #381 Initially the page listens the window onload event, and programatically clicks on the headers so the sections will be expanded. But since we use Turbo, it will request the new page by using fetch request rather than doing a full reload, so the `load` event won't be triggered. In this PR we make the script listens `turbo:load` event which always happens when visiting a new page. Result: ![May-09-2024 16-34-20](https://github.com/google/osv.dev/assets/13760813/2de992f2-9b28-426b-8dda-6885bddc13ef)
- Loading branch information