In the web component below, if I make to entries by clicking add twice then 
change the upper entry, the change to the upper entry gets copied to the 
bottom one.  Am I doing something wrong, or is this a bug?

<link rel="import" href="/components/polymer/polymer.html">
<link rel="import" href="/components/paper-button/paper-button.html">
<link rel="import" href="/components/paper-input/paper-input.html">

<dom-module id="medatest-test">
  <template>
    <paper-button on-click="_addClicked">Add</paper-button>
    <template is="dom-repeat" items="{{data}}">
      <paper-input value="{{item}}"></paper-input>
    </template>
  </template>
  <script>
    Polymer({
      is: "medatest-test",
      properties: {
        data: Array,
      },
      attached: function() {
        this.data = [ ];
      },
      _addClicked: function(e) {
        this.push("data", null);
      },
    });
  </script>
</dom-module>

Thanks,
Nate

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/72a3d8bb-9d3c-4db5-a893-36e1e0e533ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to