Skip to content

Commit 5384742

Browse files
committed
Fix bug: options of aha-column could be accumulated in some rare case.
1 parent 47a0543 commit 5384742

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/aha-table.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,7 @@
769769
searchplaceholder: undefined,
770770
ready: function() {
771771
if (this.dataset.choices) {
772+
this.options=[];
772773
var choices = JSON.parse(this.dataset.choices);
773774
for(option in choices) {
774775
this.options.push({'value': option, 'label': choices[option]});
@@ -777,4 +778,4 @@
777778
}
778779
});
779780
</script>
780-
</polymer-element>
781+
</polymer-element>

src/aha-table.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,7 @@
769769
searchplaceholder: undefined,
770770
ready: function() {
771771
if (this.dataset.choices) {
772+
this.options=[];
772773
var choices = JSON.parse(this.dataset.choices);
773774
for(option in choices) {
774775
this.options.push({'value': option, 'label': choices[option]});
@@ -777,4 +778,4 @@
777778
}
778779
});
779780
</script>
780-
</polymer-element>
781+
</polymer-element>

0 commit comments

Comments
 (0)