I think it'd be more powerful if it can additionally use if used with { target: "input.class-to-select" } this can be implemented with document.querySelector(target) instead of getElementById(target). The id will only be used if the target is specified as a part of the directive.
I think it'd be more powerful if it can additionally use if used with
{ target: "input.class-to-select" }
this can be implemented withdocument.querySelector(target)
instead ofgetElementById(target)
. The id will only be used if the target is specified as a part of the directive.