Live Demo, source link at bottom
Problem 1:
I'm using Meteor 1.0 and my initial problem is that in iOS Safari, the <a>
tag does not route to the href
path. It routes fine in all other desktop browsers.
The <a>
tag is wrapped around a <paper-button>
element.
<a href="{{pathFor 'vis1'}}" class="non-a">
<paper-button unresolved>home</paper-button>
</a>
This is the way polymer-project.org has implemented their buttons. I found that if I remove the <paper-button>
and just have the <a>
by itself, the page will route correctly in iOS Safari. I can't figure out why this would only be a problem in mobile Safari.
Problem 2:
While trying to debug this I tried attaching a 'click'
event to the <a>
s (while viewing it in safari's ios simulator inspector) using
Template.navbar.events({
'click .navigation':function(e){
console.log('click on navbar');
},
'click a':function(e){
//e.stopPropagation();
console.log('click on a tag');
}
});
However, none of the click events console.log in either mobile Safari, Safari 8.0 or FF 34.0, but do in Chrome 39.0 and Opera. I can't figure out why this would be different either.