Describe the bug
"ngModelChange" doesn't work on text change for soho-textarea
To Reproduce
Steps to reproduce the behavior:
<textarea soho-textarea maxlength="90" name="counter" (ngModelChange)="onTextChange()" [(ngModel)]="model.counterText"></textarea>Expected behavior
"ngModelChange" event binding should work for soho-textarea.
Version
Platform
We would have to have someone investigate a solution for this. Can you use the change event?
@tmcconechy, no, I can not use change event. It works the same way, i.e., change event is not triggered on text change, but rather on blur event when the text inside the textarea has changed.
The problem is (ngModelChange) is acting just like (change) event. What I am looking for is normal behaviour of (ngModelChange) so that I can immediately enable "Save" button when the text changes.
@hemantg05 I'm wondering if the input event would work for you? In Landmark to get around this issue, we listen on the input event and then call changeDirty() on the soho-trackdirty.directive to have the evaluation performed.
@fitzorama, yes, the input event works to get around this issue. Thanks for the providing this work around.
Lowering priority as there is a workaround. This came up a couple times so maybe we should try and fix it if we ever get a chance 馃憤
Most helpful comment
@hemantg05 I'm wondering if the input event would work for you? In Landmark to get around this issue, we listen on the input event and then call changeDirty() on the soho-trackdirty.directive to have the evaluation performed.