Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix fetchPriority in ImageBase.tsx #1038

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bethrezen
Copy link

React 19 produces error about wrong case for fetchPriority attribute for img tag(see below). This change will fix this.

Warning: Invalid DOM property `fetchpriority`. Did you mean `fetchPriority`?
    at img
    at ImageBase (webpack-internal:///(ssr)/./node_modules/@gravity-ui/page-constructor/build/esm/components/ImageBase/ImageBase.js:14:11)
    at picture
    at Image (webpack-internal:///(ssr)/./node_modules/@gravity-ui/page-constructor/build/esm/components/Image/Image.js:25:78)

React 19 produces error about wrong case for fetchPriority attribute for img tag(see below). This change will fix this.

```
Warning: Invalid DOM property `fetchpriority`. Did you mean `fetchPriority`?
    at img
    at ImageBase (webpack-internal:///(ssr)/./node_modules/@gravity-ui/page-constructor/build/esm/components/ImageBase/ImageBase.js:14:11)
    at picture
    at Image (webpack-internal:///(ssr)/./node_modules/@gravity-ui/page-constructor/build/esm/components/Image/Image.js:25:78)
```
@NikitaCG
Copy link
Collaborator

is this change backwards compatible with versions 17, 18 ? Because version 19 is still in RC status
@bethrezen

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