This repository was archived by the owner on Oct 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Backspace key with append-to-body sends history back #1003
Comments
I noticed this as well. It's probably because the entire select, not just the dropdown, is appended to body. So when the dropdown disappears, the entire thing moves and it loses focus. |
👍 created a PR for this... |
the PR is working |
I'm encountering this issue when append-to-body is set to false, so #1275 is useful and needed but will not address all instances of this bug. |
I don't know what the best fix will be for the source, but I am able to solve my problem by taking advantage of the on-select attribute and defining a function to shift focus back to input whenever a selection is made. |
aaronroberson
added a commit
that referenced
this issue
Feb 18, 2016
fix(dropdown): fix textbox losing focus when dropdown is triggered When an appendToBody is true, the whole select field is literally moved within the DOM when the dropdown is triggered. When the user has focus in the textbox, and the dropdown disappears, the textbox loses focus. This is a problem when you have a user that is "delete" trigger happy, as they then navigate back in history. Close #1003
aaronroberson
pushed a commit
that referenced
this issue
Feb 18, 2016
Closes #1003 chore(release): bump package version and update changelog
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I've noticed that when append-to-body is set to true and I attempt to erase an item, I'm sent back in history. Is there an extra setting required to get the backspace to remove items again?
The text was updated successfully, but these errors were encountered: