Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui5-input): implement type ahead (autocomplete) #5211

Merged
merged 5 commits into from
May 25, 2022
Merged

Conversation

ndeshev
Copy link
Contributor

@ndeshev ndeshev commented May 14, 2022

Feature request: #3488

@ndeshev ndeshev requested a review from MapTo0 May 14, 2022 06:01
add property, refactor filters
@@ -6,7 +6,8 @@ const escapeRegExp = str => {

const StartsWith = (value, items) => {
return items.filter(item => {
const lowerText = item.text.toLowerCase();
const text = item.text || item.textContent;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens if a new poperty pops up next week, should we add another || ? Can we add the propName as parameter to the filter function? not big deal, just an idea

* @public
* @since 1.4.0
*/
disableAutocomplete: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont like that naming @ilhan007 ideas? :D

refactor filters to be used by all input components
@ndeshev ndeshev force-pushed the input-typeahead branch 2 times, most recently from 1a45258 to 6f3da3a Compare May 25, 2022 12:17
@ndeshev ndeshev force-pushed the input-typeahead branch from 6f3da3a to f487f04 Compare May 25, 2022 12:34
@ndeshev ndeshev merged commit ec44888 into master May 25, 2022
@ilhan007 ilhan007 deleted the input-typeahead branch June 2, 2022 19:38
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.

2 participants