Closed arschmitz closed 2 years ago
Yes, this is a known limitation and reflected in the README around allowEmpty. In any case, I would like to support this.
Maybe i'm crazy but i don't see any notes in the readme that this does not work with computed macros.
If null, undefined, or an empty string as a date to any of the moment helpers then you you will Invalid Date in the output. To avoid this issue globally, you can set the option allowEmpty which all of the helpers respect and will result in nothing being rendered instead of Invalid Date.
I just mention moment helpers will respect it. Feel free to correct language to avoid confusion until we land support for this.
computed macros have been removed in v9
Even with the global allowEmpty set to true the computed macros still output invalid date when there is no input value