cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Alex100
Level: Powered On

TextInput OnChange does not always fire in Gallery

Steps to recreate:

1. Create a Gallery and populate it with a collection of a few dozen items.

2. Add TextInput to the Gallery (not sure if it matters but mine is not bound to data in collection).

3. Set OnChange event to the TextInput.  Mine is just "Set(c,c+1)"

4. Make the row somewhat tall so you'll have to scroll

5. Enter a value in the TextInput and then tab out.  Note that the OnChange fires

6. Enter a value in another TextInput and then click another row on the screen.  Note that the OnChange fires

7. Enter a value in another TextInput and then scroll to another row that is far away, say 20 rows down and put curser in TextInput.  Note that the OnChange did not fire for the update.

 

The attached image demostrates the issue.

 

 

2 REPLIES 2
Super User
Super User

Re: TextInput OnChange does not always fire in Gallery

@Alex100

 

Instead of Set, can you try using UpdateContext({c:c+1})

 

Also, test it out by publishing and then running the app on web/mobile.


Vivek Bavishi aka That API Guy
PowerApps and Flow MVP
Blog | Twitter | YouTube | Community Profile | GitHub



If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Alex100
Level: Powered On

Re: TextInput OnChange does not always fire in Gallery

I get the same thing with UpdateContext as well as when published and opened on a browser or phone.

 

In addition, I have a production app that is running into this issue where the OnChange is calling a patch, the set or update context was just an easy to see example.

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,896)