Skip to content

How to replace output in input? #9

Closed
@webdevyriy

Description

@webdevyriy
  const handleRender = (option) => {
    return typeof option === 'string' ? option : option.formatted_address
  }

 return (
    <AddressSearchAutocomplete
      value={value}
      getOptionLabel={(option) => handleRender(option) }

Replacing output results in an error

image

How can you avoid it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions