cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Responsive Resident
Responsive Resident

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
Responsive Resident
Responsive Resident

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

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

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (82,218)