-
Notifications
You must be signed in to change notification settings - Fork 255
Open
Description
Consider the following markup:
<template is="dom-repeat" items="{{searchResults}}">
<google-map-marker map="{{map}}"
latitude="{{item.latitude}}"
longitude="{{item.longitude}}"
title="{{item.name}}">
<h2>{{item.name}}</h2>
<span>{{item.formatted_address}}</span>
/* NOTICE: on-click event */
<button raised on-click='addToList'>Add</button>
</google-map-marker>
</template>
You would expect this to call the 'addToList' method in the current Polymer element, but it doesn't. The reason is that the DOM element actually tied to the event is still sitting under the google-map-marker tag and has been copied into the balloon as HTML text.
Metadata
Metadata
Assignees
Labels
No labels