Dropdown open content automatically

Hello, I wanted to know if there is some way to open a dropdown content automatically with an event, or with a CSS property…

I found that there is a “display” property for dropdown-content on CSS, but I really don’t know how to use it with styles on ignition…

I found a post where mentioned a way to modify the dropdown-content max-height, but I don’t know how to do it for display property… also is there a guide to understand it?

Css wont do anything to help you with that.

Maybe try setting it in focus. No idea if that will be enough, if its not then i dont think there is a way.

2 Likes

@victordcq I just tried your suggestion off of a button, and it worked perfectly; the dropdown opened right up.

Here is the code I used:
self.getChild("Dropdown").focus()

2 Likes

Does this method does not work in v8.1.26 anymore? Focus Event not working