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

on-tap event in firefox #936

Closed
lgersman opened this issue Nov 17, 2014 · 5 comments
Closed

on-tap event in firefox #936

lgersman opened this issue Nov 17, 2014 · 5 comments

Comments

@lgersman
Copy link

For some reason the on-tap event handling doesnt work anymore in Firefox (Version 30.0) with Polymer 0.5.1.

i tried on-click which worked fine. so there seems to be some tap specific problem.

remark : Using Polymer 0.4.2 this example runs successful in FF.

example

<script src="http://www.polymer-project.org/components/webcomponentsjs/webcomponents.js"></script>
<script src="http://www.polymer-project.org/components/polymer/polymer.js"></script>

<polymer-element name="foo-bar">
  <template>
    <div on-tap="{{doit}}">click me</div>
  </template>
  <script>
    Polymer({
      doit : function(e) {
        alert("hey!!");
      }
    });
  </script>
</polymer-element>

<foo-bar></foo-bar>

JSBin live example : http://jsbin.com/visodo/1/edit?html,output

@ebidel
Copy link
Contributor

ebidel commented Nov 17, 2014

That jsbin works for me in FF 33 (latest stable)

@marekroman
Copy link

Doesn't work for me in FF33.1. Updated to 33.1.1 and still nothing. Works in Chrome, IE11, Opera. Note though that it's not an issue with the on-tap event, because if you use console.log instead, it works.

EDIT: Yeah, you must name it.

Polymer('foo-bar', 
{
      doit : function(e) {
        alert("hey!!");
      }
});

@lgersman
Copy link
Author

@marekroman

both console.log and named polymer component registration hints of you have NO EFFECT for this issue in FF 30.0.

Note though that it's not an issue with the on-tap event, because if you use console.log instead, it works.

you're wrong - exchange on-tap with on-click (as i commented in the issue) and the alert box will show up. so its an on-tap issue.

EDIT: Yeah, you must name it.

you're wrong - named registration is obsolete in case of the jsbin example.

Read the docs.

@AurelienRichez
Copy link

Hi,

I have the same issue on firefox 33.0 on fedora 19 (I also tried with an ubuntu 12.04 VM and it did not work). It worked on a windows machine with firefox 33.1.1 though.

This issue may be related to googlearchive/polymer-gestures#62.

@ebidel
Copy link
Contributor

ebidel commented Nov 18, 2014

Dupe of #941

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

4 participants