Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Place Field Auto-Completion is broken #74

Open
nonovd opened this issue Aug 3, 2020 · 2 comments
Open

Place Field Auto-Completion is broken #74

nonovd opened this issue Aug 3, 2020 · 2 comments

Comments

@nonovd
Copy link

nonovd commented Aug 3, 2020

Problem

On Create/Edit Form, we cannot use the auto-completion feature available with Place field.

https://nova.laravel.com/docs/3.0/resources/fields.html#configuring-field-auto-completion

To reproduce

On parent Resource:

MorphOne::make(__('Address'), 'address', Address::class)->inline()

On child Resource Address:

public function fields(Request $request)
{
    return [
        ID::make()->sortable(),
        Place::make('Address', 'address_line_1')->hideFromIndex(),
        Text::make('Address Line 2')->hideFromIndex(),
        Text::make('City')->hideFromIndex(),
        Text::make('State')->hideFromIndex(),
        Text::make('Postal Code')->hideFromIndex(),
        Text::make('Suburb')->hideFromIndex(),
        Country::make('Country')->hideFromIndex(),
        Text::make('Latitude')->hideFromIndex(),
        Text::make('Longitude')->hideFromIndex(),
    ];
}
@lukevmk
Copy link

lukevmk commented Dec 8, 2020

+1

1 similar comment
@sbarale
Copy link

sbarale commented Apr 21, 2021

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants