I’m getting the error “'Unexpected confirm.” during fdk validate but cannot find the reason. I know ES-lint sometimes has issues with this but window.confirm() generally works. Does anyone know how to work around this? There is nothing wrong with the line of code itself.
Since this is used from within a modal, I cannot use the Interface API (and I’d rather not go through Crayons just for the purpose of that confirmation popup).
if (window.confirm('Are you sure you want to confirm this task?')) {}
@sabatale ,
We generally discourage using native window.confirm ( this will break our UI styles across the application)
so kindly use our crayons or interface API to perform this.
Thanks for the insight. As I mentioned, Interface API cannot be used here since it’s already within a side modal. However, Crayons seems to be changing a lot and we don’t want to start coding something that is going to be come obsolete soon: Modal (fw-modal) | Crayons (freshworks.com).