Skip to content

Commit

Permalink
🔖 major version bump to v5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
niketpathak committed Jun 14, 2024
1 parent c539430 commit fe6114d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ function loadFragment(fragment, firstLoad = true) {
document.querySelector('#navbarToggleSubmenuMobile').classList.remove('show');
}

/* scroll to top of fragment */
if (!subSection) {
mainSectionEl.scrollIntoView({ behavior: 'smooth', block: 'center' });
/* scroll to top of fragment if subsection does not exist */
mainSectionEl.scrollIntoView({ behavior: 'smooth', block: 'start' });
} else if (!firstLoad) {
/* subSection exists, scroll to subSection */
document.getElementById(subSection)?.scrollIntoView({ behavior: 'smooth', block: 'center' });
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"title": "typeahead-standalone",
"description": "A fast fully-featured standalone autocomplete library",
"version": "4.26.0",
"version": "5.0.0",
"homepage": "https://typeahead.digitalfortress.tech",
"license": "MIT",
"scripts": {
Expand Down

0 comments on commit fe6114d

Please sign in to comment.