-
Notifications
You must be signed in to change notification settings - Fork 61
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
Extra attributes from the server: data-fr-js-modal-button
#305
Comments
Hello @arnaudambro, Assuming you're using the components exposed by react-dsfr, this error is very strange. This attribute is added dynamically by the JavaScript code of If you can produce a reproduction repo with precise steps to reproduce I'll be able to debug. |
this is the repo I'm working on, with the code as is https://github.com/betagouv/zacharie/tree/24f0594140d20aa8d93f271947c8dd62fdb83112 the file your might be interested in is |
Please provide the exact commands to reproduce and where I should navigate to reproduce the error. |
this should work |
mmm yes, my bad, it's once you're logged in then on the url if you remove everything except the header in import { Header } from "@codegouvfr/react-dsfr/Header";
export default function TableauDeBordLayout() {
return (
<>
<Header
brandTop={
<>
Ministère
<br />
de l'Agriculture
</>
}
homeLinkProps={{
href: "/",
title: "Zacharie - Ministère de l'Agriculture",
}}
id="fr-header-header-with-quick-access-items"
serviceTagline="La Fiche d’Examen Initial (FEI) simplifiée"
serviceTitle="Zacharie"
/>
</>
);
} I made a branch for this test: https://github.com/betagouv/zacharie/tree/test--warning-dsfr |
This comment was marked as off-topic.
This comment was marked as off-topic.
Hello @carolineBda, This is not the same error and not the same meta framwork. Please open a new issue. |
ok 👍 |
@carolineBda and unfortunatly, I can't reproduce either: |
are you sure you're on the branch ? https://github.com/betagouv/zacharie/tree/test--warning-dsfr |
Still can reproduce, neither with chrome or firefox, neither with network throtling. The error I'm getting is: I can look at this but this isn't the same error you're refering to, it's related to Remix Link component. Maybe produce a dump of the error with https://www.replay.io/ ? |
still here... sorry I have no time right now to dig in a little bit more, but in October/November I think I'll be able to Thanks anyway, great job done there ! |
This error appears when the Here is a minimum layout to reproduce the error :
import { type PropsWithChildren } from 'react';
import { DsfrProvider } from '@codegouvfr/react-dsfr/next-appdir/DsfrProvider';
import { getHtmlAttributes } from '@codegouvfr/react-dsfr/next-appdir/getHtmlAttributes';
import { StartDsfr } from '@/components/StartDsfr';
const RootLayout = ({ children }: PropsWithChildren) => {
return (
<html lang="fr" {...getHtmlAttributes({ defaultColorScheme: 'light', lang: 'fr' })}>
<head>
<StartDsfr />
</head>
<body>
<DsfrProvider lang="fr">{children}</DsfrProvider>
</body>
</html>
);
};
export default RootLayout;
|
Hello @lutangar, I doubt that is the root cause of the issue. Here again I can't reproduce, I tried with the Next App Router Starter. I'm down to fix whatever as long as you can provide me a reproduction path. PS: getHtmlAttributes already sets the lang property so having |
Hello
I've this warning using react-dsfr in my Remix project (here: https://github.com/betagouv/zacharie/tree/24f0594140d20aa8d93f271947c8dd62fdb83112)
I have no clue how to try and fix it...
The text was updated successfully, but these errors were encountered: