Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Backspace key with append-to-body sends history back #1003

Closed
ro0sterjam opened this issue Jun 10, 2015 · 5 comments
Closed

Backspace key with append-to-body sends history back #1003

ro0sterjam opened this issue Jun 10, 2015 · 5 comments

Comments

@ro0sterjam
Copy link

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?

@rysilva
Copy link

rysilva commented Jun 16, 2015

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.

@vertex
Copy link

vertex commented Oct 27, 2015

👍 created a PR for this...

@onemenny
Copy link

the PR is working

@vaer-k
Copy link

vaer-k commented Jan 14, 2016

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.

@vaer-k
Copy link

vaer-k commented Jan 14, 2016

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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants