Skip to content
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

8.7.4 Umbraco forms script errors in IE #601

Closed
Wolfkhan66 opened this issue Jun 25, 2021 · 2 comments
Closed

8.7.4 Umbraco forms script errors in IE #601

Wolfkhan66 opened this issue Jun 25, 2021 · 2 comments

Comments

@Wolfkhan66
Copy link

Wolfkhan66 commented Jun 25, 2021

I know IE is going out of support but unfortunately a lot of users out there still use it.

IE is reporting a missing semi colon in this function I assume at the end of the return statement:

function wrapProviderWithIgnorerBehaviour(provider) {
    return async function(value, element, params) {
              
         // If field is hidden we ignorer the validation.
        if(element.offsetParent === null) {
            return true;
        }

        return provider(value, element, params);
    }
} 
@ronaldbarendse
Copy link

Thanks for reporting this @Wolfkhan66!

I see this function is located in the App_Plugins\UmbracoForms\Assets\themes\default\umbracoforms.js file that's used on the front-end. I don't know about the official browser support for that, only that IE isn't supported for the back-office.

We can add the missing semicolon, but it might also be caused by the async function, as that's not supported on IE: https://caniuse.com/async-functions

@AndyButland
Copy link

This has been resolved and will be included in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants