Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

fix(input): md-maxlength not properly updates on model changes. #8351

Merged
merged 1 commit into from
Oct 14, 2016

Conversation

devversion
Copy link
Member

@devversion devversion commented May 5, 2016

  • Currently the md-maxlength char counter was not updated properly and listening on the different events is unnecessary.

    ngModelController will also update the model, when the input event gets called.

    Additonally we can cover all updates in the $validator itself, because it will always update, when changes get applied to the model.

Fixes #1870. Referencing #8351

@crisbeto
Copy link
Member

crisbeto commented May 6, 2016

LGTM @ThomasBurleson

@corentin-gautier
Copy link

👍

@ThomasBurleson ThomasBurleson modified the milestone: Deprecated May 26, 2016
@devversion devversion modified the milestones: - Backlog, Deprecated May 27, 2016
@ThomasBurleson ThomasBurleson added needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved and removed needs: review This PR is waiting on review from the team labels Jul 10, 2016
@ThomasBurleson
Copy link
Contributor

@devversion - please rebase and test. Thx.

@devversion devversion force-pushed the fix/max-length-model-update branch from 198de5c to 2c27992 Compare July 14, 2016 19:45
@devversion devversion added needs: review This PR is waiting on review from the team and removed needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved labels Jul 14, 2016
* Currently the md-maxlength char counter was not updated properly and listening on the different events is unnecessary. ngModelController will already update the model, when the `input` event gets called.
  Additonally we can cover all updates in the $validator itself, because it will always update, when changes get applied to the model.

Fixes angular#1870.
@devversion devversion force-pushed the fix/max-length-model-update branch from 2c27992 to f35cbc0 Compare July 14, 2016 20:27
@devversion
Copy link
Member Author

@ThomasBurleson Done.

@devversion
Copy link
Member Author

@topherfangio Ping for review :)

Copy link
Contributor

@topherfangio topherfangio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@ThomasBurleson ThomasBurleson added needs: presubmit and removed needs: review This PR is waiting on review from the team labels Oct 9, 2016
@ThomasBurleson ThomasBurleson modified the milestones: 1.1.2, - Backlog Oct 9, 2016
@kara kara added pr: merge ready This PR is ready for a caretaker to review and removed needs: presubmit labels Oct 14, 2016
@kara kara merged commit bf5c036 into angular:master Oct 14, 2016
@devversion devversion deleted the fix/max-length-model-update branch October 14, 2016 17:24
@ThomasBurleson ThomasBurleson added needs: presubmit and removed pr: merge ready This PR is ready for a caretaker to review labels Oct 14, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants