return;
}
- for (const element of container.querySelectorAll<HTMLInputElement | HTMLSelectElement>("input, select")) {
+ for (const element of container.querySelectorAll<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>(
+ "input, select, textarea",
+ )) {
if (!element.checkValidity()) {
event.preventDefault();
if (event.defaultPrevented) {
return;
}
- for (const element of container.querySelectorAll("input, select")) {
+ for (const element of container.querySelectorAll("input, select, textarea")) {
if (!element.checkValidity()) {
event.preventDefault();
// Select the tab that contains the erroneous element.