filament-phone-field icon indicating copy to clipboard operation
filament-phone-field copied to clipboard

Error when used inside Repeater Field

Open devadattas opened this issue 1 year ago • 1 comments

When trying to use this field inside a Repeated Field, we get the following error:

image

Sample Code:

<?php

// ...
use AbanoubNassem\FilamentPhoneField\Forms\Components\PhoneInput;
// ...
// ...
// ...

                        Repeater::make('contact_numbers')
                            ->label("Contact Numbers")
                            ->schema([
                                PhoneInput::make('contact_numbers')
                                    ->label("Contact Number")
                                    ->initialCountry("IN")
                                    ->tel(),
                            ])
                            ->columnSpan(2),
// ...
// ...
// ...

devadattas avatar Jul 19 '23 19:07 devadattas