mui-places-autocomplete icon indicating copy to clipboard operation
mui-places-autocomplete copied to clipboard

how to remove input underline

Open bilalclogix opened this issue 6 years ago • 5 comments

i want to remove underline from MUIPlacesAutocomplete . using prop disableUnderline: true, but its not working. can you please tell me the solution?

bilalclogix avatar Feb 26 '19 14:02 bilalclogix

anyone please ? its urgent

bilalclogix avatar Feb 27 '19 06:02 bilalclogix

HI @bilalclogix,

Could you explain more how you are passing in the disableUnderline prop? I've been away from <MUIPlacesAutocomplete> and development for a while but will try to help.

Giners avatar Feb 27 '19 15:02 Giners

Hi @Giners here is my code please check <MUIPlacesAutocomplete name="companyAddress" onSuggestionSelected={onSuggestionSelected} renderTarget={() =>

} textFieldProps={{ name: 'companyAddress', placeholder: 'Enter your company address', disableUnderline: true, fullWidth: true, variant: 'standard', }} />

i just want to remove underline. i have attached screenshot as well please check. screenshot 4

bilalclogix avatar Feb 28 '19 05:02 bilalclogix

Hi Giners,

can you please tell me the solution its urgent for me to resolve this issue,

bilalclogix avatar Mar 01 '19 05:03 bilalclogix

hi @bilalclogix I've found a workaround

    <MUIPlacesAutocomplete
      ...
      textFieldProps={{
        InputProps: { 
          className: classes.inputField 
        }
      }}
    />

and define styles with material-ui withStyles + createStyles

const styles = (theme: Theme) =>
   ...
   inputField: {
     "&::before": { display: "none" },
     "&::after": { display: "none" }
   }

working fine

mtiziano avatar Jul 18 '19 15:07 mtiziano