vuejs-datepicker icon indicating copy to clipboard operation
vuejs-datepicker copied to clipboard

Duplicate presence of slot "beforeCalendarHeader" found in the same render tree - this will likely cause render errors.

Open divdax opened this issue 7 years ago • 6 comments
trafficstars

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.

divdax avatar Jul 09 '18 17:07 divdax

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?

MrSnoozles avatar Jul 15 '18 16:07 MrSnoozles

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 .

divdax avatar Jul 15 '18 16:07 divdax

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

oncebot avatar Sep 27 '18 00:09 oncebot

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

alanaasmaa avatar Nov 06 '18 12:11 alanaasmaa

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?

owenBeresford avatar Nov 23 '18 12:11 owenBeresford

Any update on this ?

oscarbatlle avatar Jan 10 '20 15:01 oscarbatlle