Skip to content

Open igxAutoComplete on focus? #13337

Closed Answered by RivaIvanova
Eralmidia asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Eralmidia,

I have been looking into your question and what I could say is that the IgxDropDownComponent’s open method accepts an optional parameter of type OverlaySettings which provides the modal and target properties. The modal property determines if the overlay should be in modal mode, whereas the target is the starting point where the component should be shown.

Here could be found a modified sample where the abovementioned properties are used, and the result could be observed in the below attachment.

Additionally, clicking on the input will also fire the focus event and this may lead to unwanted behavior. I have included a possible approach where the dropdown is opened only on focus

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Eralmidia
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants