feat: handle input type date

This commit is contained in:
amhsirak
2024-12-20 17:23:44 +05:30
parent 4b2c072139
commit 81eb32254c

View File

@@ -61,7 +61,7 @@ export const getElementInformation = async (
...info.attributes,
selectedValue: selectElement.value,
};
} else if (element?.tagName === 'INPUT' && (element as HTMLInputElement).type === 'time') {
} else if (element?.tagName === 'INPUT' && (element as HTMLInputElement).type === 'time' || (element as HTMLInputElement).type === 'date') {
info.innerText = (element as HTMLInputElement).value;
} else {
info.hasOnlyText = element?.children?.length === 0 &&