Custom Template in Azure B2C doesn't work in IE11 when JavaScript is enabled

Viewed 806

I have a SignIn V2 policy in Azure Active Directory B2C image 1 I also enabled JavaScript image 2 Because I use it to manipulate some elements in the form.

This configuration works well in Google Chrome, but whenever I try to run it in Internet Explorer 11, I get

SCRIPT1002: Syntax error

In the console, and the login button doesn't respond.

image 3

This happens when JavaScript is enabled. When I disable it, the page works in IE11 (But my manipulations don't).

Has anyone encountered this problem before?

1 Answers

I found out what the problem was. I was using ES6 syntax such as

() => {
  ...
}

Once I replaced it to

function () {
  ...
}

It worked on IE11.

Thank you @Thomas and @Zhi Lv - MSFT

Related