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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dropdown OnSelect not ...
Power Apps
Unanswered

Dropdown OnSelect not triggered by keyboard

(0) ShareShare
ReportReport
Posted on by 16

Hey all,

Just come across an issue that i can't seem to find a solution too.

To keep it short, we have a dropdown control that when selected (not when choosing an option), a text box should become visible. This is working as expected when you use a mouse, but when you use a keyboard and tab through to the dropdown control, then press enter to select it and show the options, the OnSelect isn't fired. No code i've tried seems to be triggered, regardless of what i've got in there.

Is this meant to be the case? Because it's not what i would expect to happen. Buttons can be triggered fine, but i guess they're a bit different. I just tested with a combo box and and that works as well.

 

Thanks!

Categories:
I have the same question (0)
  • rswain Profile Picture
    173 on at
    This is a known issue with the Dropdown control in Power Apps. The OnSelect event of the Dropdown control is not triggered when the dropdown is selected using the keyboard. This is because the keyboard selection of a dropdown option does not count as a selection of the dropdown control itself.
    
    One possible workaround is to use the OnChange event of the dropdown control instead of the OnSelect event. The OnChange event is triggered whenever a new value is selected, either by mouse or keyboard.
    
    Another workaround is to use a different control, such as a ComboBox or a Listbox, which do trigger the OnSelect event when selected using the keyboard.
    
    Alternatively, you could consider using a custom solution with a Text Input control and a Popup control. When the Text Input control has focus, the Popup control is displayed showing the available options. When an option is selected, the value is entered into the Text Input control and the Popup control is hidden. This approach provides more flexibility and control over the behavior of the control.
  • Zanzaid Profile Picture
    16 on at

    Hey Rswain,

    Thanks, i did search the forum to see if it was mentioned anywhere but couldn't find anything. I hope it hasn't been a known issue for to long...

     

    For now we have gone with a combo box since it's almost the same as what we need, just a little overkill for the function.

  • More2Learn Profile Picture
    46 on at

    Hi rswain,

     

    I'm having a similar issue but it seems to only effect the use of a mouse in a combobox.

    The Event is:  Set(val_updChange,val_selItem.Selected.Name)

     

    Here is how it is working currently

    1. When a user enters a value with the keyboard event triggers fine.
    2. When a user enters a value with the keyboard and clicks a value in the resulting dropdown, event triggers fine.
    3. When a user uses only the mouse to select an item from the list WITHOUT scrolling in the dropdown, event does NOT trigger.
    4. When a user uses only the mouse to select an item from the list WITH scrolling in the dropdown, event does NOT trigger.

    Any idea what the difference is between a mouse click selection and keyboard entry selection, or even better, how to get the Event to trigger in both cases?

     

    Thanks in advance for any advice you can offer.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard