Skip to content

fix: detect visibility:hidden for hidden state#1066

Open
People-Sea wants to merge 1 commit intopqina:masterfrom
People-Sea:fix/visibility-hidden-detection
Open

fix: detect visibility:hidden for hidden state#1066
People-Sea wants to merge 1 commit intopqina:masterfrom
People-Sea:fix/visibility-hidden-detection

Conversation

@People-Sea
Copy link
Contributor

@People-Sea People-Sea commented Jan 31, 2026

FilePond only checks offsetParent === null to determine if the element is hidden, which works for display: none but not for visibility: hidden.

When FilePond is placed in containers using visibility: hidden (common in tab components), the render loop sleeps while hidden but doesn't wake up when becoming visible—because the visibility check only looks at offsetParent.

This adds style.visibility === 'hidden' to the hidden state detection so the render loop properly resumes when the container becomes visible.

image

Reproduction https://codesandbox.io/p/sandbox/broken-frog-yysqdr?file=%2Findex.html

@People-Sea People-Sea force-pushed the fix/visibility-hidden-detection branch from 448aefd to ef97595 Compare February 2, 2026 03:38
@rikschennink
Copy link
Collaborator

@People-Sea thanks for the PR, happy to revisit this when v5 is out of beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants