2023-02-04 17:50:58 +00:00
|
|
|
import React from "react";
|
2023-02-06 22:37:37 +00:00
|
|
|
|
2023-02-04 17:50:58 +00:00
|
|
|
const PlaceholderAdd = () => {
|
|
|
|
let placeholderCep;
|
2023-02-06 22:37:37 +00:00
|
|
|
const CreatePlaceholder = () => {
|
|
|
|
placeholderCep = document.querySelector(
|
|
|
|
".vtex-address-form__postalCode .vtex-input .vtex-input-prefix__group .vtex-address-form-4-x-hideDecorators"
|
|
|
|
) as HTMLInputElement;
|
2023-02-04 17:50:58 +00:00
|
|
|
placeholderCep.placeholder = "Digite seu cep";
|
|
|
|
console.log(placeholderCep);
|
2023-02-06 22:37:37 +00:00
|
|
|
return placeholderCep;
|
|
|
|
};
|
2023-02-04 17:50:58 +00:00
|
|
|
|
2023-02-06 22:37:37 +00:00
|
|
|
return (
|
|
|
|
<>{document.addEventListener("DOMContentLoaded", CreatePlaceholder)}</>
|
|
|
|
);
|
2023-02-01 23:50:50 +00:00
|
|
|
};
|
|
|
|
|
2023-02-04 17:50:58 +00:00
|
|
|
export default PlaceholderAdd;
|