mozrest-sdk-react-dev 0.1.6 → 0.1.7

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 CHANGED
@@ -47814,11 +47814,7 @@ const AddressAutoComplete = () => {
47814
47814
  const ref = useRef(null);
47815
47815
  const clearSuggestions = () => setSuggestions([]);
47816
47816
  useOutsideClick(ref, clearSuggestions);
47817
- const handelChandeAddress = async (e3) => {
47818
- var _a2;
47819
- e3.persist();
47820
- console.log("textAddr", e3.target);
47821
- const textAddr = (_a2 = e3.target) == null ? void 0 : _a2.value;
47817
+ const handelChandeAddress = async (textAddr) => {
47822
47818
  setFieldValue("address", textAddr);
47823
47819
  if (textAddr.length < 5) {
47824
47820
  return;
@@ -47834,7 +47830,13 @@ const AddressAutoComplete = () => {
47834
47830
  value: item2
47835
47831
  })));
47836
47832
  };
47837
- const handelLoadSuggestions = debounce_1(handelChandeAddress, 700);
47833
+ const handelLoadSuggestions = (e3) => {
47834
+ e3.persist();
47835
+ setTimeout(() => {
47836
+ var _a2;
47837
+ void handelChandeAddress((_a2 = e3.target) == null ? void 0 : _a2.value);
47838
+ }, 700);
47839
+ };
47838
47840
  const onSelectSuggestion = ({ value: value2 }) => {
47839
47841
  setFieldValue("lat", value2.location.lat);
47840
47842
  setFieldValue("lng", value2.location.lng);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mozrest-sdk-react-dev",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "main": "mozrest-sdk.es.js",
5
5
  "keywords": ["mozrest"],
6
6
  "author": {