You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This is because the ngBlur directive is listening for the blur event on the md-textfloat container element, not the inner input element itself. This will be the same for the input, focus, etc events.
Then there are input attributes that won't work:
<md-textfloatautocapitalize="off"></md-textfloat>
The developer will expect this to put the autocapitalize="off" attribute on the input, and stop auto-capitalization on mobile. But again, this attribute will stay on the container.
There are potentially hundreds of directives and attributes that could be put on the <md-textfloat> container that the developer will expect to be passed straight to the <input>. We can't manually cover them all.
Fixing This
The best way to fix this would be to use replace: true on the md-textfloat directive, then set the template to be an <input>. This would cause all of the attributes to be passed to a real native <input>.
Then we could use DOM magic to place the <label> element as a sibling, and remove the label when the input is removed.