locale props with component isn't being render in 2.9.2 ? #1107
-
I have a tour, using: <Joyride
run={run}
steps={steps}
callback={callback}
locale={{
skip: <CustomSkipButton />
}} Where function CustomSkipButton() {
return (
<StyledCustomSkipButton>
Click here to end tutorial
</StyledCustomSkipButton>
);
} Migrating to the latest version (2.9.2), the CustomSkipButton isn't being rendered anymore. Only If I use plain text , the skip button is being display, e.g.: <Joyride
run={run}
steps={steps}
callback={callback}
locale={{
skip: "Skip Button"
}} Did the API changed ? I still see ReactNode as the type input ? Or is this a bug ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hey @LatentDream Nope, it's still working. |
Beta Was this translation helpful? Give feedback.
-
Hey @gilbarbara, thanks for taking a look that quickly. Must be a something in our code base, I'll investigate further later today on why the switch to Thanks |
Beta Was this translation helpful? Give feedback.
-
Released as 2.9.3 |
Beta Was this translation helpful? Give feedback.
Released as 2.9.3
Thanks