NouanceLabs / payload-better-fields-plugin

This plugin aims to provide you with very specific and improved fields for the Payload admin panel.
MIT License
124 stars 2 forks source link

Incorrect example Number field #53

Closed Evanion closed 6 months ago

Evanion commented 6 months ago

The example for the NumberField seems to be incorrect, the correct structure that worked for me, was:

...NumberField(
  {
    name: "yield",
    label: "Yield",
    required: true,
  },
  {
    suffix: "%",
    decimalScale: 0,
    fixedDecimalScale: true,
  }
),

version: ^1.1.1

paulpopus commented 6 months ago

Thanks for reporting this, forgot to update the readme in the 1.0 update. Fixed now!