Skip to content

Commit 846ddcd

Browse files
committed
Fix bug: options of aha-column could be accumulated in some rare case.
1 parent e929332 commit 846ddcd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dist/aha-table.html

Lines changed: 1 addition & 0 deletions
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]});

src/aha-table.html

Lines changed: 1 addition & 0 deletions
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]});

0 commit comments

Comments
 (0)