SoftwareBrothers / adminjs

AdminJS is an admin panel for apps written in node.js
https://adminjs.co
MIT License
8.16k stars 659 forks source link

float and number need prop to properly work #1349

Open AshotN opened 1 year ago

AshotN commented 1 year ago

Describe the bug As previously outlined in #819 you need to provide a props property to get a number field to work correctly.

This works

   grandTotal: {
        type: "float",
        props: {
          type: "number",
        },
      },

This doesn't

   grandTotal: {
        type: "float"
      }

Installed libraries and their versions

Expected behavior Props should not be needed if the type is float or number

Cxxshyy commented 1 year ago

hi could i take a look at this issue with some guidance?