Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(datetime): use ResizeObserver to reliably detect visibility changes#30864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ShaneK wants to merge4 commits intomain
base:main
Choose a base branch
Loading
fromfix/datetime-visibility

Conversation

@ShaneK
Copy link
Member

@ShaneKShaneK commentedDec 12, 2025
edited
Loading

Issue number:resolves#30706


What is the current behavior?

Whenion-datetime is rendered inside a modal or popover, it may appear invisible (opacity: 0) because the datetime-ready class is not applied. This occurs because IntersectionObserver doesn't reliably detect visibility changes in some browsers (particularly WebKit/Safari) when the datetime is inside an overlay that is presented after page load.

What is the new behavior?

The datetime now uses multiple strategies to reliably detect visibility:

  1. ResizeObserver - Detects when the element transitions between having dimensions (visible) and zero dimensions (hidden)
  2. Overlay event listeners - Listens for didPresent/didDismiss events when datetime is inside a modal or popover
  3. Polling fallback - Uses requestAnimationFrame-based polling for browsers where ResizeObserver doesn't fire reliably (WebKit)

The .intersection-tracker element has been removed as it's no longer needed.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Current dev build:

8.7.13-dev.11765560568.1a8772e8

@ShaneKShaneK requested a review froma team as acode ownerDecember 12, 2025 14:57
@vercel
Copy link

vercelbot commentedDec 12, 2025
edited
Loading

The latest updates on your projects. Learn more aboutVercel for GitHub.

ProjectDeploymentPreviewCommentsUpdated (UTC)
ionic-frameworkReadyReadyPreviewCommentDec 12, 2025 5:20pm

@github-actionsgithub-actionsbot added the package: core@ionic/core package labelDec 12, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OS-jacobbellOS-jacobbellAwaiting requested review from OS-jacobbellOS-jacobbell is a code owner automatically assigned from ionic-team/framework

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

package: core@ionic/core package

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

bug: IonDateTime sometimes show invisible calendar

2 participants

@ShaneK

[8]ページ先頭

©2009-2025 Movatter.jp