Skip to content

Commit

Permalink
Fix detect is ready for render
Browse files Browse the repository at this point in the history
  • Loading branch information
vadymshymko committed Dec 24, 2022
1 parent 50356eb commit f8f66c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-clear-modal",
"version": "1.0.0",
"version": "1.0.1",
"description": "Simple and lightweight, fully controlled isomorphic (with SSR support) modal component for React.js",
"files": [
"dist/"
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function ReactClearModal({
...wrapperProps
}: ReactClearModalProps) {
const [isReadyForRender, setIsReadyForRender] = useState(
!disableRenderInPortal || typeof window !== 'undefined'
disableRenderInPortal
);
const closeTimeoutRef = useRef<any>(null);
const contentRef = useRef<HTMLDivElement>(null);
Expand Down

0 comments on commit f8f66c8

Please sign in to comment.