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

Revert change to focusing behaviour in 4.0.6 #5576

Merged
merged 1 commit into from Jul 21, 2019
Merged

Revert change to focusing behaviour in 4.0.6 #5576

merged 1 commit into from Jul 21, 2019

Conversation

kevin-brown
Copy link
Member

This pull request includes a

  • Bug fix
  • New feature
  • Translation

The following changes were made

  • Revert 933189b
  • Add test to ensure the focus is transferred properly when the dropdown closes

If this is related to an existing ticket, include a link to it as well.

Fixes #5532
Fixes #5185
Closes #5552

This behaviour, where the focus was happening on a small asynchronous
delay, was added in commit 933189b late last year in a commit with
no supporting tickets or commit message explaining what the change
was trying to accomplish. This commit has effectly been reverted within
this commit, since it caused a regression in how focus was being
assigned that made it inconsistent with a standard `<select>`.

A test was added for this which ensures that we won't see that
regression again.

Fixes #5532
Fixes #5185
Closes #5552
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4.0.5 -> 4.0.7 select2.close event regresssion Select2 loses focus after selecting Item
1 participant