decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.96k stars 3.05k forks source link

fix: trigger change if default is {{now}} #7272

Closed martinjagodic closed 2 months ago

martinjagodic commented 2 months ago

Closes #7271

The value was set in the UI, but handleChange never triggerred, so it never rewrote "{{now}}" with the current date. This PR moves the check into the mount hook and triggers handleChange, so that correct value is saved.