In TypeScript, for some reason, event.target doesn't natively have a blur() method. You need to ensure that is a HTMLElement type.
if (element.target instanceof HTMLElement) {
element.activeElement.blur();
}
In TypeScript, for some reason, event.target doesn't natively have a blur() method. You need to ensure that is a HTMLElement type.
if (element.target instanceof HTMLElement) {
element.activeElement.blur();
}