FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Revert change to focusing behaviour in 4.0.6 by kevin-brown · Pull Request #5576 · select2/select2 · GitHub

Revert change to focusing behaviour in 4.0.6 - #5576

Merged
kevin-brown merged 1 commit into
developfrom
GH-5532
Jul 21, 2019
Merged

Revert change to focusing behaviour in 4.0.6#5576
kevin-brown merged 1 commit into
developfrom
GH-5532

Conversation

Copy link
Copy Markdown
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
kevin-brown merged commit 1b5a962 into develop Jul 21, 2019
kevin-brown deleted the GH-5532 branch July 21, 2019 02:44
maxwellfet928 pushed a commit to maxwellfet928/select2 that referenced this pull request Jun 8, 2026
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 select2#5532
Fixes select2#5185
Closes select2#5552
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL