trying to support MM-DD display in Editor

trying to support MM-DD display in Editor

loukinglouking Posts: 259Questions: 52Answers: 0
edited April 2020 in Editor

For Editor I'm using

{displayFormat: 'MM-DD', wireFormat:'YYYY-MM-DD'}

which seems to work ok when I have data in the field, but I also want to allow null (empty) input. I see from https://datatables.net/forums/discussion/59006 there's a conflict in Editor between datetime and null which is to be fixed in 1.9.3. Not sure when 1.9.3 will be available. If it's soon I can shelve this for a bit and continue after 1.9.3 is released, otherwise I have to just use string type.

Or maybe there's a workaround with editor which wasn't mentioned in that thread? Or maybe there's a way to configure moment (via Editor?) to make this._invalidDate have '' (empty string) or null?

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Answer ✓

    Currently no work around I'm afraid. DD-1237 is our internal bug number to track this issue.

    I'm expecting to do an Editor release by the end of the month (at least that is the intention!).

    Allan

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Answer ✓

    Just to say that this has now been fixed and will be in Editor 1.9.3 which will drop shortly (end of last month didn't quite happen!).

    Allan

  • loukinglouking Posts: 259Questions: 52Answers: 0

    cool, thanks!

This discussion has been closed.