-
I have been tasked with creating a "Read more" link inside of the text that appears on the I have that working, the link appears and it changes the css classes on the onClick event, but I see that the modal is not rerendering with the new Is there a way I can force a re-render of the dialogue so that the new
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The plugin is not a react component so any state change won't be reflected unless you completely reset and then re-run the plugin. If possible only call You can use E.g. cc.getConfig('languages').en.consent_modal.title = 'New title';
cc.updateLanguage('en', true); Note: v3 is more suited for react based frameworks |
Beta Was this translation helpful? Give feedback.
The plugin is not a react component so any state change won't be reflected unless you completely reset and then re-run the plugin.
If possible only call
run()
once, as shown in this demo.You can use
updateLanguage('<lang>', true)
to refresh the current translation in both modals.E.g.
Note: v3 is more suited for react based frameworks