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

Refactor example code in README.md

Open koenigstag opened this issue 1 year ago • 0 comments

Summary

Changed example usage code.

  1. Added example of passing selected value to props.onSelect inside handleSelect
  2. Added showDropdown state to hide dropdown when there is no address and input is not focused. This change was required because dropdown was still present in the UI if it has paddings in styles.

koenigstag avatar Dec 27 '23 09:12 koenigstag