Welcome to the JavaScript feedback portal. We’re happy you’re here! If you have feedback on how to improve the JavaScript, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hi,
When the TimePicker component is destroyed (destroy() method called) with Content-Security-Policy enabled (disallowed 'unsafe-eval') then below error is logged in the console by the browser:
Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
at TimePicker.Function [as rippleFn] ()
at TimePicker.destroy (ej2-calendars.es2015.js:9703)
After quick investigation it looks like the problem is in below line of code:
In our case rippleFn property of TimePIcker is created just as 'Function'. I'm also able to re-create the same error in the console:

return Function;
to:
return () => {};Regards,
Michał Pawłowski