Vanessa 2025-01-18 00:12:41 +08:00
parent 58d1fe9de6
commit e982d4c1d9

View file

@ -430,7 +430,7 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type
const inputElement = avMaskElement.querySelector(".b3-text-field") as HTMLInputElement;
if (inputElement) {
if (["text", "email", "phone", "block", "template"].includes(type)) {
inputElement.value = cellElements[0].querySelector(".av__celltext").textContent;
inputElement.value = cellElements[0].querySelector(".av__celltext")?.textContent || "";
}
inputElement.select();
inputElement.focus();