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

Address dropdown not showing up when the googleplace is placed on a Modal. #35

Open
jacksonmj24 opened this issue Oct 9, 2017 · 3 comments

Comments

@jacksonmj24
Copy link

The API is firing Up ans I'm getting the response. But still, the drop down does not show up. Works fine on normal pages.

@rajan-g
Copy link
Owner

rajan-g commented Nov 6, 2017

may I get your code details..

@toregua
Copy link

toregua commented Aug 10, 2018

I have the same issue inside an primeng modal, no problem in a normal component :

<p-dialog header="Créer un agenda" [(visible)]="afficherModalAgenda" styleClass="fullscreen" modal="modal" [responsive]="true" showEffect="fade" appendTo="body">
    <div class="ui-g ui-fluid">
        <div class="ui-g-12 ui-md-4">
            <div class="md-inputfield">
                <input type="text" pInputText placeholder="" formControlName="localisationLibelle" id="localisationLibelle" autocomplete="nope" (setAddress)="getAddress($event)" googleplace/>
                <label>Localisation</label>
                <control-messages [control]="form.controls.localisationLibelle"></control-messages>
            </div>
        </div>
    </div>
    <p-footer>
        <div class="ui-dialog-buttonpane ui-helper-clearfix">
            <button type="submit" pButton icon="fa-reply" label="Créer" (click)="saveModalAjouterAgenda()" [disabled]="!agendaFormPage?.form?.valid"></button>
            <button type="button" pButton icon="fa-close" class="btn-default" (click)="afficherModalAgenda=false" label="Annuler"></button>
        </div>
    </p-footer>
</p-dialog>

@toregua
Copy link

toregua commented Aug 10, 2018

I have found the solution, it is just CSS z-index problem, add this in your css and everything will be ok :

.pac-container {
    z-index: 99999;
}

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