Hi All, I created a View using coordinate container in my project (version 8.1.26). Then I added a dropdown and button component within a coordinate container. And then I added a onClick event in button as seen below.
Not sure if it will help in this case. But I would personally move the script to the On Action Performed, as this is the proper button action, rather than clicking on the button object.
I can't replicate this "working" in 8.1.18. Could you copy the Coordinate Container node and paste the contents in a formatted snippet within this thread?
After speaking with a Dev, it's not terribly important to replicate at all in 8.1.18 because this was behavior we identified as "undesirable", and you're no longer seeing the behavior you expected because we purposely made the Dropdown send focus to the <input> piece of the component as part of 8.1.20 release (release notes). The original behavior (which you see in 8.1.18) would expand the Dropdown, but it is not common practice for Dropdowns to expand their options as they receive focus. In an effort to be more consistent, we no longer expand the options of the Dropdown when it receives focus.
As an exercise, you can examine the behavior of these forums for the expected/traditional behavior.
Click anywhere within the forum which is not a button/link, then press tab until you come to a field which is a dropdown. Note that the dropdown has not expanded, and instead requires you to press SPACE, or Enter/Return to expand the Dropdown.
@victordcq , I tried turning off the searchable property, but the dropdown still does not expand (show dropdown options) when I clicked on the sibling button with self.getSibling("Dropdown").focus() event.
Not that I'm aware of. Keep in mind that this would have to be a browser feature, as Perspective just tells the browser to display a dropdown. You're really punching a brick wall, here.