I'm submitting a bug report
Please tell us about your environment:
Current behavior:
If I want an element focused on render, but I'm not interested in keeping track of its focus state after that, I might do something like this:
<button focus.one-time="true">My Button</button>
In this case, attaching event listeners to the element only results in needless overhead.
Expected/desired behavior:
The Focus custom attribute should check if the binding mode is two-way and if not, should not attach event listeners to the element.
I'm submitting a bug report
1.2.0
Please tell us about your environment:
Operating System:
Linux (Ubuntu)
Node Version:
6.9.4
NPM Version:
3.10.10
JSPM
JSPM 0.16.48
Browser:
Chrome 55
Language:
TypeScript 2.1.4
Current behavior:
If I want an element focused on render, but I'm not interested in keeping track of its focus state after that, I might do something like this:
In this case, attaching event listeners to the element only results in needless overhead.
Expected/desired behavior:
The Focus custom attribute should check if the binding mode is two-way and if not, should not attach event listeners to the element.