How can i select ui elements from mat-select drop down list? I want to select an item that is not visible i the first set of items of the list. it is required to scroll to the item and click on it
it would help us tremendously if you could share a sample website. This way we can certainly help you in a better way than second guessing what potential issues might appear.
There are many options like this…i need to select, sat last option, which is not visible on the drop down list when opened.
sry for being unclear, what I meant was a online hosted site that shows that behavior? From the minimal html snippet we can’t really tell what the point is that you’d want to achieve.
E.g here is the official documentation of angular material - seeing _ngcontent I guess thats what your target site uses - and shows a few examples https://material.angular.io/components/select/overview.
Can you reproduce your issue here? If so please describe in steps what you’d like to achieve. If we can make it this way, we can come up with a sample code that should achieve what you’re looking for.
I just went ahead and created a sample for the favorite food example (the first select box)
It first scrolls to the element, then opens the dropdown and selects the third entry (Tacos). Afterwards we evaluate the selected text of the control