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

Click handlers don't work anymore on iOS with 0.5.0 #918

Closed
markleusink opened this issue Nov 12, 2014 · 3 comments
Closed

Click handlers don't work anymore on iOS with 0.5.0 #918

markleusink opened this issue Nov 12, 2014 · 3 comments

Comments

@markleusink
Copy link

I'm seeing strange behaviour with click handlers on Mobile Safari (iOS 8.1). With the example below only the first button triggers the alert. The other three elements (2 a's and the second button) don't trigger anything: the first a doesn't even open the website. Tested this with 0.5.0. With 0.4.2 everything works ok.

<!DOCTYPE html>
<html>
<head>

  <meta name="viewport" content="width=device-width, initial-scale=1">

  <!--load the polyfill-->
  <script src="bower_components/webcomponentsjs/webcomponents.js"></script>

  <link rel="import" href="bower_components/polymer/polymer.html"></script>
  <polymer-element name="my-element">

    <template>

        <button onclick="alert('button clicked')">Click me</button>

        <button on-click="{{clickHandler}}">Click me</button>

        <a href="http://www.google.com">Google</a>

        <a on-click="{{clickHandler}}">Polymer click handler</a>

    </template>

    <script>
        Polymer({
            clickHandler : function(event, detail, sender) {
                alert('Polymer click handler');
            }
        });
    </script>

  </polymer-element>

</head>

<body>
  <my-element></my-element>
</body>
</html>
@markleusink
Copy link
Author

Note that a result of this is that the Polymer project site is broken on iOS (in Chrome as well as Safari).

@ebidel
Copy link
Contributor

ebidel commented Nov 12, 2014

This is a known issue that we're hot fixing today. 0.5.1 will be out soon.

@ebidel
Copy link
Contributor

ebidel commented Nov 14, 2014

Should be fixed in 0.5.1

@ebidel ebidel closed this as completed Nov 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants