Thinkmill / keystatic

First class CMS experience, TypeScript API, Markdown & YAML/JSON based, no DB
https://keystatic.com
MIT License
1.23k stars 79 forks source link

Label and Description missing for NumberField #426

Closed emilienbidet closed 1 year ago

emilienbidet commented 1 year ago

Hello !

I found a bug with NumberField.

The label and the description should appear but nothing is displayed for NumberFields.

Here is my schema

export default config({
  storage: {
    kind: "local",
  },
  collections: {
    hotels: collection({
      schema: {
        slug: fields.slug({
          name: {
            label: "Name",
          },
        }),
        distance: fields.integer({
          label: "Distance",
          description: "Distance from the place in meters",
          validation: {
            min: 0,
            max: 10000,
          },
        }),
        ...

And the result:

CleanShot 2023-07-06 at 19 35 34@2x
JedWatson commented 1 year ago

I just pushed a fix for this, will be on npm with the next release in a day or two.

Thanks for reporting it!

emilienbidet commented 1 year ago

Thank you boss ❤️