Skip to content

Commit

Permalink
[SearchPage] Wrap to disable IntersectionObserver
Browse files Browse the repository at this point in the history
  • Loading branch information
RoiArthurB committed Jul 11, 2022
1 parent 203e39d commit 6fe591c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions website/src/theme/SearchPage/index.js
@@ -0,0 +1,14 @@
import React from 'react';
import SearchPage from '@theme-original/SearchPage';
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';

ExecutionEnvironment.canUseIntersectionObserver = false;

export default function SearchPageWrapper(props) {
ExecutionEnvironment.canUseIntersectionObserver = false;
return (
<>
<SearchPage {...props} />
</>
);
}

0 comments on commit 6fe591c

Please sign in to comment.