Skip to content

Commit c86fdf8

Browse files
committed
feat: handle input tags in getElementInfo
1 parent 1ab4631 commit c86fdf8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/src/workflow-management/selector.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ export const getElementInformation = async (
182182
...info.attributes,
183183
selectedValue: selectElement.value,
184184
};
185-
} else {
185+
} else if (targetElement?.tagName === 'INPUT' && (targetElement as HTMLInputElement).type === 'time' || (targetElement as HTMLInputElement).type === 'date') {
186+
info.innerText = (targetElement as HTMLInputElement).value;
187+
}
188+
else {
186189
info.hasOnlyText = targetElement.children.length === 0 &&
187190
(targetElement.textContent !== null &&
188191
targetElement.textContent.trim().length > 0);

0 commit comments

Comments
 (0)