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

main.js IE11 syntax error #3354

Closed
Jinnified opened this issue Nov 30, 2017 · 6 comments
Closed

main.js IE11 syntax error #3354

Jinnified opened this issue Nov 30, 2017 · 6 comments

Comments

@Jinnified
Copy link

Jinnified commented Nov 30, 2017

Hi all

I am using next as dependency to build a react universal rendering site. Just found out a very weird behaviour. In fact, if you check out any examples in this repo, say with-ga or with-redux, run dev locally, and add a simple page with a click button in it.

export default class Test extends from React.Component {
  handleClick = () => {
    alert('hellloo');
  }
  render() {
    return <button onClick={this.handleClick}>CLICK ME</button>;
  }
}

Then you try to visit this page in any android device's stock browser, the click event won't get fired, anyone had come acrosse this issue before? Is it function in the main.js that captures document event that did something fancy? Please help, I kinda run out of ideas.

@Jinnified
Copy link
Author

Plus i have tried onTouchStart, onTouchEnd, onTap event instead of onClick evnet, none of these works.

@Jinnified
Copy link
Author

Jinnified commented Nov 30, 2017

OK, i think i kinda know where the error comes from now, it looks the main.js has an syntax error in IE or any browser using IR as core, main.js (17547,25)

@Jinnified
Copy link
Author

related: #2747
but didn't find a clean solution

@Jinnified Jinnified changed the title Nextjs prevent click event been fired in Android device browser? main.js IE11 syntax error Nov 30, 2017
@landvibe
Copy link

landvibe commented Dec 1, 2017

same issue here

@alexdevero
Copy link

The same issue here.

OS: Win 10.
Browser: IE 11.
Next.js: 4.1.4.

@timneutkens
Copy link
Member

Please try latest next@canary. not sure if it's still an issue.

@lock lock bot locked as resolved and limited conversation to collaborators Mar 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants