mozrest-sdk-react-dev 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mozrest-sdk.es.js +2 -0
- package/package.json +1 -1
package/mozrest-sdk.es.js
CHANGED
|
@@ -47810,11 +47810,13 @@ const AddressAutoComplete = () => {
|
|
|
47810
47810
|
const { t: t2 } = useTranslation();
|
|
47811
47811
|
const [suggestions, setSuggestions] = useState([]);
|
|
47812
47812
|
const { setFieldValue } = useFormikContext();
|
|
47813
|
+
useState();
|
|
47813
47814
|
const ref = useRef(null);
|
|
47814
47815
|
const clearSuggestions = () => setSuggestions([]);
|
|
47815
47816
|
useOutsideClick(ref, clearSuggestions);
|
|
47816
47817
|
const handelChandeAddress = async (e3) => {
|
|
47817
47818
|
var _a2;
|
|
47819
|
+
e3.persist();
|
|
47818
47820
|
console.log("textAddr", e3.target);
|
|
47819
47821
|
const textAddr = (_a2 = e3.target) == null ? void 0 : _a2.value;
|
|
47820
47822
|
setFieldValue("address", textAddr);
|