Date picker in Repeater

Hi,
I have been working with a repeater on my site, and all seems to be good with this, I can add extra elements to the first container and they are nicely replicated throughout the other containers on the page when its in preview/publish.
All that is except for a date picker. I add this into the top container and this just doesnt want to repeat.

Anyone else get this?

Is this a known issue that a repeater cannot handle a date picker?

Thanks in advance.

1 Like

Hey there,

Yeah I had this problem too. The way I got around it was super jank, I expanded the size of my repeater container to the point where it was large enough to fit the calender. I then inserted a text element that filled empty space.

I created a date_click(event) function that was called when the datepicker was clicked and inside this function I expanded or collapsed the text element using .expandI() or .collapse() element functions.

Collapsing an element collapses all the pixels that are horizontally inline with that element, so it essentially deletes the excess space on collapse, and expands the empty space on expand.

Sorry for not adding code, Iā€™m still finishing it up, but let me know if you need it or if that explanation is enough.

Cheers