Skip to content

New attribute: typeahead-focus-not-empty#6

Open
fracz wants to merge 1 commit into
yohaiai:masterfrom
fracz:not-empty
Open

New attribute: typeahead-focus-not-empty#6
fracz wants to merge 1 commit into
yohaiai:masterfrom
fracz:not-empty

Conversation

@fracz

@fracz fracz commented Nov 26, 2015

Copy link
Copy Markdown

This PR adds a new attribute typeahead-focus-not-empty.

There are number of cases when showing autocomplete for empty value does not make sense for example we are selecting from thousands of items from database and displaying a list with no filtering at all is pointless). However, when user enters a value in typeahead, leaves the field and then enters it again - typeahead should show the suggestions again.

If you want the typeahead-focus to trigger only when there is some entered value, add the typeahead-focus-not-empty attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant