Skip to content

Commit

Permalink
Do not prevent default for Enter
Browse files Browse the repository at this point in the history
Do not prevent default for "Enter" if search is not visible. Old logic would prevent comment system adding new line using "Enter"
  • Loading branch information
Jinbo Pan authored and Jinbo Pan committed Aug 16, 2024
1 parent 580f36f commit dcde4fe
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions assets/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ document.addEventListener("keydown", function (event) {
} else {
document.activeElement.click();
}
}else{
event.preventDefault();
}
}

Expand Down

0 comments on commit dcde4fe

Please sign in to comment.