Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error on 'validationMessage' custom binding.
When the 'validationMessage' custom binding is used in an element, and that element is later removed from the DOM, if the validation is triggered an error is thrown. This PR fixes that problem by checking on whether the element has a parent node before updating it, and by disposing the subscription that updates the element when the element is disposed.
- Loading branch information
Showing
2 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters