-
Notifications
You must be signed in to change notification settings - Fork 493
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
unsafeContent doesn't show unless message is set to false #220
Comments
I think the main issue is rather this line: |
@nicoknoll it seems to be setting it with the output of HubSpot/vex/blob/master/src/vex.js#L186
The problem seems to be that the vex-dialog doesn't take into consideration content/unsafeContent at all (being that vex-dialog/blob/master/src/vex.dialog.js#L11
Therefore a possible fix/hack would be to set the message option to unsafeContent/content in vex-dialog's
|
I think this is a documentation problem, rather than a code problem. Also per the documentation:
You'll see that when using Do you agree this is a documentation problem or should we find a better code solution? |
Per documentation, unsafe content should be sent via unsafeContent option.
However it seems that the actual option is unsafeMessage:
vex.dialog.open({ unsafeContent: '<h2>Thank you</h2>', });
vex.dialog.open({ unsafeMessage: '<h2>Thank you</h2>', });
The text was updated successfully, but these errors were encountered: