diff --git a/examples/components/DocSearch.jsx b/examples/components/DocSearch.jsx index 3e2e8e50..e9016929 100644 --- a/examples/components/DocSearch.jsx +++ b/examples/components/DocSearch.jsx @@ -6,7 +6,7 @@ import Axios from 'axios'; import SearchBox from '../../src/components/SearchBox'; export default class DocSearch extends React.Component { - docs; + docs = []; constructor(props) { super(props); this.state = { diff --git a/examples/style.scss b/examples/style.scss index 72f11680..ed2200f1 100644 --- a/examples/style.scss +++ b/examples/style.scss @@ -714,6 +714,11 @@ a { .search-result { background-color: #fff; + top: 45px; + bottom: 0; + position: fixed; + overflow-y: scroll; + overflow-x: hidden; } .dark {