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

Need a way to reset input #160

Closed
zackarychapple opened this issue Aug 13, 2014 · 15 comments
Closed

Need a way to reset input #160

zackarychapple opened this issue Aug 13, 2014 · 15 comments
Milestone

Comments

@zackarychapple
Copy link

Is there a way we can add a clear button on an x icon to clear the current set value.
Possibly a element that we can add any markup in, text or icon. Then that gets added to the placeholder text div but floating off to the right. Sometimes we want to be able to reset our dropdowns.

@dimirc
Copy link
Contributor

dimirc commented Aug 13, 2014

With #110 we can reset but only with backspace for now, I'll check this requirement this weekend

@yilativ
Copy link

yilativ commented Aug 15, 2014

+1

@zackarychapple
Copy link
Author

@dimirc any thoughts on this?

@yrshaikh
Copy link

any update on this ?

@dimirc
Copy link
Contributor

dimirc commented Sep 9, 2014

@zackarychapple any chance you can start a PR and I can help you to get this done?

@dimirc dimirc added this to the 0.8.x milestone Sep 9, 2014
@zackarychapple
Copy link
Author

@dimirc sure thing. I will get on it this week.

@kuldeeprishi
Copy link

+1

@mattaningram
Copy link

+1 Definitely missing the allowClear option from ui-select2.

@rickitan
Copy link

+1 ui-select2 provided allowClear="true"

@smajl
Copy link

smajl commented Sep 26, 2014

allowClear - one of the best options of select2 (+1)

@dimirc
Copy link
Contributor

dimirc commented Oct 10, 2014

Check the demo at PR #287

@richstandbrook
Copy link
Contributor

A way to specify the clear icon would be good. I'm not using glyphicons

@dimirc
Copy link
Contributor

dimirc commented Feb 17, 2015

This was solved with #287

@dimirc dimirc closed this as completed Feb 17, 2015
@seiyria
Copy link

seiyria commented Feb 23, 2015

allow-clear does not seem to fire the on-select event and I can't seem to find an on-clear event. Is this intended?

@niraj-thakur
Copy link

Do we have any method by which we can reset the ui-select element back to its placeholder value?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests