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

fix(ui5-input): Suggestions can now be arbitrary list items #1969

Merged
merged 2 commits into from
Jul 23, 2020

Conversation

vladitasev
Copy link
Contributor

@vladitasev vladitasev commented Jul 21, 2020

Changes:

  • The _getItems function now reads all children of the list, regardless of tag name, so that for example ui5-li-custom will also work.
  • The updateValueOnPreview hook now gets not just a string, but the whole item as a parameter. This gives developers more freedom in determining what exactly is considered as the "preview value" of the item. This is handy for example if ui5-li-custom is used and the value is just part of that.

closes: #1967

BREAKING CHANGE: the format of the updateValueOnPreview hook has changed. The parameter is no longer a string (itemValue), but the whole item object now. It is this hook's responsibility to determine whether/how to preview group items and inactive items too.

@vladitasev vladitasev merged commit aa6fde4 into master Jul 23, 2020
@vladitasev vladitasev deleted the input-arbitrary-elements branch July 23, 2020 07:55
@ilhan007 ilhan007 added this to 1.0.0-rc.8 in UI5 Web Components - Roadmap Aug 7, 2020
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.

Item Undefined in suggestion Popover
2 participants