I'm creating a customselect
form control and when it has a state disabled
I need to skip focusin
and focusout
events.
This code without disabled validation doesn't work, the focusin
is still emited.
@Element() private element: HTMLElement;
public componentWillLoad() {
this.element.addEventListener('focusin', (e) => {
e.preventDefault();
e.stopPropagation();
});
}