Skip to content

Commit

Permalink
Merge pull request #2 from vadymshymko/fix-initial-render
Browse files Browse the repository at this point in the history
Fix detect is ready for render
  • Loading branch information
vadymshymko authored Dec 24, 2022
2 parents 50356eb + f8f66c8 commit e563e1d
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 e563e1d

Please sign in to comment.