@stubber/form-fields 2.2.4 → 2.2.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.
@@ -123,6 +123,7 @@ function handle_geocoder_result(r) {
123
123
  const geo_center = r?.detail?.result?.center || [];
124
124
  if (geo_center.length === 2) {
125
125
  center = [geo_center[0], geo_center[1]];
126
+ setValueCoords(geo_center[1], geo_center[0]);
126
127
  mapComponent?.flyTo({ center });
127
128
  }
128
129
  }
@@ -19,11 +19,8 @@ async function setup_intl_tel_input(input_element) {
19
19
  const data = await res.json();
20
20
  return data?.country_code || "us";
21
21
  },
22
- separateDialCode: false
23
- });
24
- const itis = document.querySelectorAll("div.iti");
25
- itis.forEach((iti2) => {
26
- iti2.style["width"] = "100%";
22
+ separateDialCode: false,
23
+ containerClass: "w-full"
27
24
  });
28
25
  input_element.addEventListener("countrychange", () => set_number_details());
29
26
  await iti.promise;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stubber/form-fields",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "An automatic form builder based on field specifications",
5
5
  "keywords": [
6
6
  "components",