Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

search's cleared event is fired when field is empty #931 #932

Conversation

BenjaminNeilDavis
Copy link
Contributor

  • added an option to clear when input is empty (by default set to false)
  • worked with the search / close icon to make more sense
  • When already searched a value the icon turns to a x. The change i implemented is if the input value changes the icon turns back to a search icon. Before it would stay an x and would have to click enter to search a different value.

@futuremint futuremint modified the milestone: 3.5.0 Dec 12, 2014
@interactivellama
Copy link
Contributor

That third bullet is a great UX find.

@interactivellama
Copy link
Contributor

After I clear the field, the icon goes back to search, but when I tab back into the input field. The clear icons appears again even though the field is blank. (last frame of screen capture below, the state with the 5 sec pause).

2015-01-02 13_55_31

I think tabbing or clicking back into the input should not trigger a clear icon, but remain a search icon.

@swilliamset
Copy link
Contributor

@BenjaminNeilDavis please update your branch so the PR can be merged.

@BenjaminNeilDavis
Copy link
Contributor Author

Working on the fix now...great catch

@BenjaminNeilDavis BenjaminNeilDavis force-pushed the issue-931-search-cleared-event branch 3 times, most recently from df46fa2 to e5de36f Compare January 5, 2015 20:07
Checkbox / Radio: Setting checked attribute on underlying input #906

bump dist

Checkbox / Radio: Setting checked attribute on underlying input #906

bump dist

Checkbox / Radio: Setting checked attribute on underlying input #906

Wrapping in boolean if statement and cleaning up comments.

(avoid-dupe-theads) make sure thead actually gets removed

Update to Bootstrap 3.3 #918

Change tests to use moment-with-locales.js (momen.js v2.8.x)

Checkbox / Radio: Setting checked attribute on underlying input #906

letting native date construct date
instead of moment falling back to native date
bypasses deprecated warning
fix #915

Clarifies logic that chooses how to parse dates with moment.

Add moment-with-locales to index.html

(refix-firefox-checkbox) fix firefox bug where checkbox appears to not change when clicked because it is checking and then unchecking immediately

add support for passing options to datepickers when initializing scheduler

Modifiy scheduler end/start dates to pass

moment deprecated "lang" for "locale"

assign lang to locale for moment js

Fix of search when tabbing in
@BenjaminNeilDavis BenjaminNeilDavis force-pushed the issue-931-search-cleared-event branch from e5de36f to d1a8552 Compare January 5, 2015 20:08
swilliamset pushed a commit that referenced this pull request Jan 5, 2015
…ed-event

search's cleared event is fired when field is empty #931
@swilliamset swilliamset merged commit 208d722 into ExactTarget:master Jan 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants