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
Prevent backspace key from clearing selected value #926
Labels
Comments
I am having the same issue, can someone help ? |
Still nothing? |
+1 |
2 similar comments
+1 |
+1 |
Until it's supported by ui-select I had to create an angular directive that patches this: https://gist.github.com/danmo/020cc4ad33b87929b021e5c193a3e25c |
pierregaste
pushed a commit
to pierregaste/ui-select
that referenced
this issue
Jul 25, 2016
… reset Currently, when you select an option and you press the backspace key, it will reset the model. With this option, we could disable this behavior to avoid the model resetting. Closes angular-ui#926 angular-ui#525
kboga
pushed a commit
to kboga/ui-select
that referenced
this issue
Nov 29, 2016
Adds `backspace-reset` attribute (default: `true`). Currently, when you select an option and you press the backspace key, it will reset the model. Setting `backspace-reset="false"` will disable this behavior and so avoid resetting the model. Closes angular-ui#926 angular-ui#525
@pierregaste your solution works only on UI Select Single, right? |
@Wizjonero Yes, that's right! We cannot use this option with uiSelectMultipleDirective because backspace key is used for remove a selected value. |
@pierregaste was this ever merge? I need this desperately, I'm asking because I don't see it in the documentation at least. |
@CoconutDeveloper yes it was merged : #1736 I forget to add documentation. You could create a new PR for this ;) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is there a way to prevent backspace key from clearing the selected value in ui-select?
Thank you in advance
The text was updated successfully, but these errors were encountered: