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

Backspace "feature" blocking obligatory selects #525

Closed
Icydillic opened this issue Dec 17, 2014 · 1 comment
Closed

Backspace "feature" blocking obligatory selects #525

Icydillic opened this issue Dec 17, 2014 · 1 comment

Comments

@Icydillic
Copy link

Hey all,

I understand that there is a need to use backspace to delete the selection input.
But is it possible to give it a config in the directive?
In this scenario I do not see a possibility to make a select option obligatory or am I missing something? Should I use the on-select="" property to supress an empty selection?

Kind regards,
Stefan

@wesleycho
Copy link
Contributor

This should probably be implemented in the library through proper validation measures.

I'm going to close this as a duplicate of the other validation issues currently open.

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
user378230 pushed a commit that referenced this issue Nov 2, 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 #926 #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
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

2 participants