I am working on an alternative datepicker for Wix Code, that allows different languages, time-picker etc. I have got it 99.9% working. The non-working part is about this:
1) inside the html-comp the calendar is drawn with settings inside some jQuery-code;
2) a bit after this drawing is done, from postMessage comes the date to display in the calendar as defaultDate. This date arrives perfectly.
3) now, in a already drawn calendar, I need to reset the defaultDate property with the date that just arrived.
And here my stupidity shines: I cannot do it, whatever I try.
So, is someone willing to help me out. I have tried on StackOverflow, but no response, the combination Wix Code/jQuery/postmessage/flatpickr is too rare, I fear.