fix: search bar function

This commit is contained in:
Ricky L. T. Wong
2025-03-23 17:13:46 -04:00
parent 61bdfef701
commit 5bb49ae3fb

View File

@@ -25,7 +25,7 @@ export default function NavBar(props) {
const onKeyUp = e => { const onKeyUp = e => {
if (e.keyCode === 13) { if (e.keyCode === 13) {
const search = document.getElementById('simple-search').innerText const search = document.getElementById('simple-search').value
if (search) { if (search) {
router.push({ pathname: '/search/' + search }) router.push({ pathname: '/search/' + search })
} }