Skip to content

theme dark/light not changing while changing prop #296

@HiImAndre

Description

@HiImAndre

"react-google-recaptcha": "^3.1.0",

<ReCAPTCHA
  hidden={isDev}
  sitekey={globals.recaptcha.siteKey}
  onChange={onChange}
  theme={darkMode ? "dark" : "light"} // doesn't change on prop change
/>

when darkMode is changing, the prop applies to it but recaptcha gui stays the the same color until proper site refresh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions