Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Focus not working in jQuery UI 1.10 with modal dialog #940
When creating a modal dialog, the input field which select2 creates cannot be focused.
The reason seems to be a changed behavior in jQuery UI dialog which now discards all focus events on elements which are not part of a dialog (
I could fix this temporarily by adding a custom CSS class to the drop down:
However this does not feel like a permanent solution.
This was referenced
Jun 10, 2013
referenced this issue
Feb 12, 2014
@wok solution not worked for me, but work just add this in dialog init: