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

Warning: Prop style did not match. Server: "left:0;color:#ffbc0b;width:2%" Client: "left:0;color:#ffbc0b;transition:;width:2%" in nextjs 13 #40

Open
Shani-Sinojiya opened this issue Feb 9, 2023 · 3 comments

Comments

@Shani-Sinojiya
Copy link

image

Warning: Prop style did not match. Server: "left:0;color:#ffbc0b;width:2%" Client: "left:0;color:#ffbc0b;transition:;width:2%"

@titi60
Copy link

titi60 commented May 27, 2023

add transition={true} to Rating component

@RishikeshDarandale
Copy link

When readonly={true}, then following error occurs:

client.js:1 Warning: Prop `style` did not match. Server: "null" Client: "cursor:"
    at span
    at span
    at exports.Rating (webpack-internal:///./node_modules/react-simple-star-rating/dist/index.js:1:2743)

@RishikeshDarandale
Copy link

When readonly={true}, then following error occurs:

client.js:1 Warning: Prop `style` did not match. Server: "null" Client: "cursor:"
    at span
    at span
    at exports.Rating (webpack-internal:///./node_modules/react-simple-star-rating/dist/index.js:1:2743)

This can be resolved with following props

style={{
          cursor: readonly ? 'default' : 'pointer',
        }}

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

No branches or pull requests

3 participants