cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
trjackson77
Helper I
Helper I

Focus hijacked - possibly by patch code?

I am having trouble with a gallery for the input of data.  It has three text input controls (txtCount1-3).  I want the focus to move from txtCount1 to txtCount2 (and 2-3) when data is entered.  There is some code running onChange that patches a collection.

 

When entering data I can see that the focus moves from txtCount1 to txtCount2, but then almost instantaneously moves back to txtCount1.  What is going on?

1 ACCEPTED SOLUTION

Accepted Solutions
Alex_10
Super User
Super User

how does that focus move from txtCount1 to txtCount2? By pressing TAB on the keyboard?

If yes, patching OnChange into the same collection as gallery's data source collection will reset tabbing order.

Patching to a different collection will not reset that tabbing.

View solution in original post

1 REPLY 1
Alex_10
Super User
Super User

how does that focus move from txtCount1 to txtCount2? By pressing TAB on the keyboard?

If yes, patching OnChange into the same collection as gallery's data source collection will reset tabbing order.

Patching to a different collection will not reset that tabbing.

View solution in original post

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (41,443)