sales-frontend-components 0.0.124 → 0.0.126

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/dist/index.cjs.js CHANGED
@@ -1874,7 +1874,7 @@ function DeaCustomerSearch({
1874
1874
  const [residentNumberFront, setResidentNumberFront] = React.useState("");
1875
1875
  const [residentNumberBack, setResidentNumberBack] = React.useState("");
1876
1876
  const handleSearch = () => {
1877
- salesFrontendUtils.getE2EDataIDs(["residentNumberFront", "residentNumberBack"], (e2edata) => {
1877
+ salesFrontendUtils.getE2EDataIDs(["residentNumberBack"], (e2edata) => {
1878
1878
  setSearchParams({
1879
1879
  residentNumberFront,
1880
1880
  residentNumberBack,
@@ -1895,6 +1895,10 @@ function DeaCustomerSearch({
1895
1895
  e.preventDefault();
1896
1896
  }
1897
1897
  };
1898
+ React.useEffect(() => {
1899
+ const el = document.getElementById("residentNumberBack");
1900
+ salesFrontendUtils.addE2EObject(el);
1901
+ });
1898
1902
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1899
1903
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$e("search-section"), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$e("search-filters"), children: [
1900
1904
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$e("search-filter-section"), children: [
@@ -1925,12 +1929,11 @@ function DeaCustomerSearch({
1925
1929
  TextField$3,
1926
1930
  {
1927
1931
  type: "password",
1932
+ id: "residentNumberBack",
1928
1933
  name: "residentNumberBack",
1929
1934
  value: residentNumberBack,
1930
1935
  maxLength: 7,
1931
1936
  placeholder: "\uB4A4 7\uC790\uB9AC \uC785\uB825",
1932
- e2e_type: "1",
1933
- e2e_inputtype: "1",
1934
1937
  onChange: (e) => setResidentNumberBack(e.target.value),
1935
1938
  size: "medium",
1936
1939
  onKeyDown,