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

Make background of suggestions non-transparent #47

Open
samikool opened this issue Apr 4, 2020 · 1 comment
Open

Make background of suggestions non-transparent #47

samikool opened this issue Apr 4, 2020 · 1 comment

Comments

@samikool
Copy link

samikool commented Apr 4, 2020

I'm working with this component right now, and I don't know if I'm missing something obvious, but the background for the suggestions is transparent. I've tried rendering divs, and boxes in the render target, but nothing seems to be doing it. Here is my code:

<MUIPlacesAutocomplete
    onSuggestionSelected={this.handlePlaceSelect}
    renderTarget={() => (<div/>)}
    textFieldProps={
    {   
      variant: "outlined", 
      fullWidth: true, 
      label: "Street Address",
      autoComplete: "none",
     }
    }
/>

Here is a picture of the problem:
image

Here is what it normally looks like:
image

It seems to be blocking the outline of the lower input boxes, but not the label.
Any ideas?

@JackZheng10
Copy link

JackZheng10 commented Apr 6, 2020

I encountered the same error and used the renderTarget prop. You might be misunderstanding how it's used. I passed in what I want under the address search bar itself so that the results get rendered over it. Here's what my prop ended up looking like:

image

Before search:
image

After search:
image

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

2 participants