-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] - Vue-Tabulator don't remove old column, if I install new options. #44
Comments
I don't know if it's Vue-tabulator or Tabulator problem. |
Hey @aalopatin |
Hey @angeliski Add - adds 2 columns to replace everything after the second column If click Remove and then Add it works |
Thanks @aalopatin I will try find the bug |
@angeliski It looks a bug contributing to this is in this line: https://github.com/angeliski/vue-tabulator/blob/dev/src/components/TabulatorComponent.vue#L58 instead of ...mergeWith(this.eventOptions, this.options, merge), try doing ...mergeWith({}, this.eventOptions, this.options, merge), |
Hey @BryceBarbara Thanks for the advice |
The reference in the watcher function is reclyced between updates, now the object is new and isolated fix #44
Hi!
I try to change a set of columns in the options of the tabulator.
When I add new columns it works, but when I remove column from options, they aren't removed.
Here is part of my code.
I have a method - setPeriods(), which set columns in the options object.
If new Periods are added in selectedPeriods it work correct:
But if I delete columns, tabulator instance isn't updated:
But the options object is updated in Vue:
I can't solve this problem. Can you help me?
The text was updated successfully, but these errors were encountered: