Is it possible to emit a custom event from the directive in the component to which this directive is attached.
I was expecting it to work as described
The easiest way to do this is just use dispatchEvent on the el like this
el
el.dispatchEvent(new Event('change'));