Skip to content

Commit

Permalink
Merge pull request #76 from byalashhab/main
Browse files Browse the repository at this point in the history
fix issue "Space in the search box breaks the copy" #66
  • Loading branch information
samwho authored Feb 14, 2025
2 parents 4eef26d + f8118dd commit 60a5684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions symbols.js
Original file line number Diff line number Diff line change
Expand Up @@ -1063,10 +1063,10 @@ document.addEventListener("DOMContentLoaded", () => {
const searchInput = document.querySelector(".search input");
searchInput.value = search;
searchInput.addEventListener("input", (e) => {
renderSymbols(e.target.value);
renderSymbols(e.target.value.trim());
});
searchInput.addEventListener("blur", (e) => {
window.location.hash = e.target.value;
window.location.hash = e.target.value.trim();
});

window.addEventListener("hashchange", () => {
Expand Down

0 comments on commit 60a5684

Please sign in to comment.