Skip to content

Bug: react/compat ignores style.aspectRatio after undefined #4824

Open
@krutoo

Description

@krutoo
  • Check if updating to the latest Preact version resolves the issue

Describe the bug
After switching value of style.aspectRatio from undefined to number it is not applying to DOM element

It works fine in React 19

To Reproduce

Demo
https://codesandbox.io/p/github/krutoo/typescript-react/draft/billowing-hill

Steps to reproduce the behavior:

  1. Go to sandbox
  2. Open preview
  3. See that ratio is not applied to element in devtools and visually

Expected behavior
Aspect ratio should be applied

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions