web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / **Bug with TextInput**...
Power Apps
Unanswered

**Bug with TextInput**: OnSelect not firing when users click/drag to select text

(2) ShareShare
ReportReport
Posted on by 466
Greetings, community. I have encountered a bug with the TextInput control where the OnSelect property doesn't get fired when a user clicks/drags to select text inside of the control before editing. It works fine if a user clicks and then clears/edits text.
 
 
Another user reported this issue for data cards in a form previously (OnSelect doesn't fire when highlighting text (powerplatform.com), but I have now identified this is down to the specific controls. In my example, that's the TextInput.
 
For any Microsoft personnel who see this, I am guessing the issue could be down to a missing EventListener (W3 Schools Link) on the control object in the backend code. I obviously don't know what the code is behind-the-scenes, but I'd guess a mousedown/mouseup event combo is needed. Same for touch movement for mobile interactions.
Categories:
I have the same question (0)
  • aaaaaaaa2 Profile Picture
    16 on at
    Glad someone else has found this issue.
     
    Just to specify the problem a bit more for when (or if) a Microsoft person comes to see this: the problem occurs when the user left clicks down within the text input and then moves their cursor outside the bounds of the text input before releasing their left click. 99% of the time this will occur when the user is attempting to highlight text already in the text input to replace it; but, thought I'd highlight this as it is actually possible to have the OnSelect trigger when highlighting the text, as long as you keep the cursor with the text input box when you release left click.
  • Niranjanbabu Chakali Profile Picture
    23 on at

    Hi,

    It looks like you’re using a Text Input control inside the gallery. If this is correct, please update your collection in the OnSelect property of the Text Input control.

    For your reference, check the formula below:

    UpdateIf(
        MyCollection,
        ID = ThisItem.ID, // Condition to match the item in the collection
        {
            InputValue: TextInput1.Text // Field to update with the new value
        }
    )
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard