Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: ion-input ionChange fires also when value is changed externally #22732

Closed
Suxsem opened this issue Jan 3, 2021 · 3 comments
Closed

bug: ion-input ionChange fires also when value is changed externally #22732

Suxsem opened this issue Jan 3, 2021 · 3 comments
Labels
holiday triage issues that were created during holiday period

Comments

@Suxsem
Copy link

Suxsem commented Jan 3, 2021

Bug Report

Ionic version:
[x] 5.x

Current behavior:
I'm using Ionic-VUE

                  <ion-input
                    :value="locationText"
                    @ionChange="getPlacePredictions($event.target.value)"
                    ></ion-input>

The getPlacePredictions functions shows a list of search results. When a user click on one of them I update locationText to reflect the user choice.
But then ionChange fires again, showing again the list of search results.

Expected behavior:
The ionChange event should only fire when the value is changed from the input component, NOT when it's changed externally.

Thank you

@ionitron-bot ionitron-bot bot added the holiday triage issues that were created during holiday period label Jan 3, 2021
@ionitron-bot
Copy link

ionitron-bot bot commented Jan 3, 2021

Thanks for the issue! This issue has been labeled as holiday triage. With the winter holidays quickly approaching, much of the Ionic Team will soon be taking time off. During this time, issue triaging and PR review will be delayed until the team begins to return. After this period, we will work to ensure that all new issues are properly triaged and that new PRs are reviewed.

In the meantime, please read our Winter Holiday Triage Guide for information on how to ensure that your issue is triaged correctly.

Thank you!

@liamdebeasi
Copy link
Contributor

Thanks for the issue. I am going to close this as a duplicate of #20106 (same underlying behavior).

@ionitron-bot
Copy link

ionitron-bot bot commented Feb 3, 2021

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Feb 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
holiday triage issues that were created during holiday period
Projects
None yet
Development

No branches or pull requests

2 participants