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-combobox): enable setting value programatically #3253

Merged
merged 6 commits into from
Jun 28, 2021
Merged

Conversation

MapTo0
Copy link
Member

@MapTo0 MapTo0 commented May 14, 2021

Users can now set value programatically.
filterValue property should not be used anymore.
value property represents the "live" value of the ui5-combobox.
Change and Input events continue to fire as before, so users can track values changes.

BREAKING CHANGE: filter value property is removed.
FIXES: #2233

@MapTo0 MapTo0 requested review from ilhan007 and ndeshev May 14, 2021 12:21
@ndeshev
Copy link
Contributor

ndeshev commented May 21, 2021

The component's desired functionality works and I have no comments on the code. You could add a test testing the fixed behaviour

ndeshev
ndeshev previously approved these changes May 25, 2021
MapTo0 added 2 commits May 27, 2021 16:31
BREAKING CHANGE: filter value property is removed.
FIXES: #2233
Copy link
Member

@ilhan007 ilhan007 left a comment

Choose a reason for hiding this comment

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

I noticed excessive firing of "change"

Screen.Recording.2021-05-28.at.10.22.25.mov

@MapTo0
Copy link
Member Author

MapTo0 commented Jun 21, 2021

should be good now.

@ndeshev
Copy link
Contributor

ndeshev commented Jun 22, 2021

When you have a selected item/value, the change event is fired as many times as the "ENTER" key is pressed even without changing the value/item.

@ndeshev
Copy link
Contributor

ndeshev commented Jun 23, 2021

If you type a letter to show suggestion, for example "A" then click on it with the mouse, change is not fired, neither on click or if enter is pressed after that.

@MapTo0 MapTo0 merged commit d85561a into master Jun 28, 2021
@MapTo0 MapTo0 deleted the combo-value branch June 28, 2021 13:46
ilhan007 pushed a commit that referenced this pull request Jul 2, 2021
BREAKING CHANGE: filter value property is removed.
FIXES: #2233
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ComboBox doesn't update immediately after set value via useState
3 participants