Closed SilviaAmAm closed 5 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 75.53%. Comparing base (
16ace7e
) to head (375187f
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
that's weird since we also use https://github.com/formio/protected-eval to circumvent CSP challenges :thinking:
Closing this because I don't think this is going anywhere? Feel free to reopen if I'm wrong!
Forms with telephone number components fail because of a CSP error:
This happens in the Evaluator: https://github.com/formio/formio.js/blob/v4.13.13/src/utils/Evaluator.js#L28 when it calls lodash
template
function. This makes a call toFunction()
, which is why it gets blocked by CSP. (https://github.com/lodash/lodash/issues/832) So then this function returns nothing.When calling
getFormattedTooltip
, which callsinterpolate
, this function is undefined and gives an error.I need to investigate further, because I don't understand why this only happens for telefone components. This component also shows a visual regression, so probably something related. But I don't know yet
This seems to be a problem since 4.13.13-rc.1