When I set 0 to number field, it always treats as empty field. And if that field is required, it will reporting error. I don't think it is good design because in many cases, 0 has meaning. I suggest we should treat 0 like other digits and null/undefined as an empty field.

When I set 0 to number field, it always treats as empty field. And if that field is required, it will reporting error. I don't think it is good design because in many cases, `0` has meaning. I suggest we should treat `0` like other digits and `null`/`undefined` as an empty field.
Info:
- framework: Astro `4.15.1`
```
experimental: {
contentLayer: true,
contentIntellisense: true,
},
```
- os: Linux
- vscode: `1.92.2`
<!-- github-sync-id:2500193574 -->
Thanks @ngdangtu-vn for opening this issue. I have implemented a fix for this in the latest beta. Feel free to give it a try and let me know how it works.
Thanks @ngdangtu-vn for opening this issue. I have implemented a fix for this in the latest beta. Feel free to give it a try and let me know how it works.
<!-- github-comment-id:2331350718 -->
You will have to uninstall or disable the stable version, and once that is done, you can install the beta: https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-front-matter-beta
<!-- github-comment-id:2331669517 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
When I set 0 to number field, it always treats as empty field. And if that field is required, it will reporting error. I don't think it is good design because in many cases,
0has meaning. I suggest we should treat0like other digits andnull/undefinedas an empty field.Info:
4.15.11.92.2Thanks @ngdangtu-vn for opening this issue. I have implemented a fix for this in the latest beta. Feel free to give it a try and let me know how it works.
Cool, how do I test it?
You will have to uninstall or disable the stable version, and once that is done, you can install the beta: https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-front-matter-beta
Just tested, it works beautiful. Thanks!
Thanks for verifying 🙏
This functionality is now part of the
v10.4.0main release.