ionic-framework
ionic-framework copied to clipboard
feat(textarea): ionChange will only emit from user committed changes
Pull request checklist
Please check if your PR fulfills the following requirements:
- [x] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been reviewed and added / updated if needed (for bug fixes / features)
- Some docs updates need to be made in the
ionic-docsrepo, in a separate PR. See the contributing guide for details.
- Some docs updates need to be made in the
- [x] Build (
npm run build) was run locally and any changes were pushed - [x] Lint (
npm run lint) has passed locally and any fixes were made for failures
Pull request type
Please check the type of change your PR introduces:
- [ ] Bugfix
- [x] Feature
- [ ] Code style update (formatting, renaming)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] Documentation content changes
- [ ] Other (please describe):
What is the current behavior?
Textarea emits ionChange each time the value is modified internally (e.g. user typing) or externally (e.g. value being set programmatically).
Issue URL: Internal
What is the new behavior?
ionChangeis only emitted when the innertextareachange event is fired.debounceapplies to theionInputevent instead ofionChange
Does this introduce a breaking change?
- [x] Yes
- [ ] No