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

Telephone Field Issue #80

Open ainsleyclark opened 1 month ago

ainsleyclark commented 1 month ago

Recieving an error when using the TelephoneField

image
{
label: 'Contact Details',
    fields: [
        {
            name: 'contact',
            type: 'group',
            interfaceName: 'Contact',
            admin: {
                hideGutter: true,
            },
            fields: [
                {
                    type: 'row',
                    fields: [
                        {
                            name: 'email',
                            type: 'email',
                            label: 'Email',
                            admin: {
                                width: '40%',
                            },
                        },
                        ...TelephoneField({
                            name: 'telephone',
                            admin: {
                                width: '50%',
                                placeholder: '+44 1732 123456',
                            },
                        }),
                    ]
                },
            ],
        },
    ]
}