Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select2 set focus is not working #198

Open
delegate-it opened this issue Oct 27, 2021 · 0 comments
Open

Select2 set focus is not working #198

delegate-it opened this issue Oct 27, 2021 · 0 comments

Comments

@delegate-it
Copy link

Hi

I have an alteditor with Select2 and I need to have the Select2 get the focus and open the select2 so the user will be able to start searching immediately once the alteditor modal is opened.

I have added the below code but for some reason the select2 is not opening.
addModalOpen: function (altEditor, dt, selector) { $('#child').select2('open');

after inspecting, I found that the span that has the list of element has a width of 0 and positioned to the top left corner.

Do you know how we can fix this issue?

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant