Skip to content
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

updating markedDateRange prop values doesn't change the calendar #101

Closed
syldman opened this issue Jul 29, 2020 · 4 comments
Closed

updating markedDateRange prop values doesn't change the calendar #101

syldman opened this issue Jul 29, 2020 · 4 comments

Comments

@syldman
Copy link

syldman commented Jul 29, 2020

I tried quite a bunch of ways:

  • updating :calendar prop
  • updating :config prop
  • updating :value prop
  • calling .updateCalendar()

and only re-rendering of the whole component worked

BTW: great job and thanks!

@Gamsake
Copy link

Gamsake commented Aug 31, 2020

me neither (version: 2.8.88)

someone says 'using :key solves the issue', but that makes other issues

@didotsonev
Copy link

+1

@ngekoding
Copy link

I have a same issue when trying to update the configs, and successfully make it works by using vue watch cycle.

<!-- view -->
<functional-calendar
  ref="Calendar"
  v-model="calendar"
  :configs="calendarConfigs">
</functional-calendar>

Just manipulate the calendarConfigs value, e.g. change limits, etc...

And here is the main point to make it works.

watch: {
  calendarConfigs: {
    deep: true, 
    handler() {
      this.$refs.Calendar.setConfigs();
    }
  }
}

That's it.

Hope can help anyone who have the same problem.

@ManukMinasyan
Copy link
Owner

Hello. Thanks for your feedback. Now I don't have time to deal with the calendar. Please create pull requests, I will appreciate it, it will be useful for the community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants