mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-07 07:26:46 +00:00
fix: search bar function
This commit is contained in:
@@ -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 })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user