vuejs-datepicker
vuejs-datepicker copied to clipboard
Duplicate presence of slot "beforeCalendarHeader" found in the same render tree - this will likely cause render errors.
When using a slot i get this error:
Duplicate presence of slot "beforeCalendarHeader" found in the same render tree - this will likely cause render errors.
because the slot is used 3 times.
Same here, I'm using the datepicker in a loop and get this error. I tried to use scoped slots but did not have any success with it yet. Did you figure this out?
Even if you use it once in a loop you get this error because the slot is defined multiple times
MrSnoozles [email protected] schrieb am So., 15. Juli 2018, 18:49:
Same here, I'm using the datepicker in a loop and get this error. I tried to use scoped slots but did not have any success with it yet. Did you figure this out?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/charliekassel/vuejs-datepicker/issues/556#issuecomment-405103520, or mute the thread https://github.com/notifications/unsubscribe-auth/ABY6Y6lXlsxaWWAKyULHPqMA2UYPcRa4ks5uG3KEgaJpZM4VIHSS .
maximum-view prop seems to fix it as all the date, month, year selector uses that slot thus the duplicate warning. maximum-view="day" should fix it but you will lose the month/year picker
I was thinking if we would change the slot names to be different it should fix the issue?
This is the commit that broke the feature: https://github.com/charliekassel/vuejs-datepicker/commit/45a6fd4fc9cdd318ba7b92dfca7779bdc718a545
Ref @alanaasmaa, I confirm. If you rename the duplicate occurences of beforeCalendarHeader, the issue goes away. Does the slot need to be defined several times?
Any update on this ?