ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ComboBox doesn't update immediately after set value via useState

Open lenient opened this issue 6 years ago • 8 comments

Describe the bug The value of ComboBox doesn't update immediately after set value via useState.

To reproduce Steps to reproduce the behavior:

  1. Go to https://sap.github.io/ui5-webcomponents-react/?path=/story/ui5-web-components-combobox--generated-default-story
  2. Click the down arrow to select one item from the dropdown list.
  3. Typing some text like 'test' in the value property on the right panel, you will see the ComboBox still shows the previous value text.
  4. Just click on the ComboBox, you will see the text updated.

Expected behavior The text value should be updated immediately once changing it.

Context

  • UI5 Web Components version: v0.10.5

Affected components (if known) ComboBox

lenient avatar Sep 22 '20 03:09 lenient

@MarcusNotheis I suppose that this is an issue related with the sample. Can you take a look?

fifoosid avatar Sep 23 '20 04:09 fifoosid

Hey @fifoosid,

looks like ComboBox is not reacting to the value update immediately. I've created this codesandbox with "plain" UI5 Web Components and I can observe the same behavior.

Web Components Version: 1.0.0-rc.8

MarcusNotheis avatar Sep 23 '20 07:09 MarcusNotheis

Hello @lenient at first we resolved the issue the the referenced PR, but after further testing we found side effects on the component behaviour, see the the issue: https://github.com/SAP/ui5-webcomponents/issues/2321

So we will revert the change and try to fix it in another way. Sorry for the inconvenience.

BR, ilhan

ilhan007 avatar Oct 08 '20 07:10 ilhan007

FYI @SAP/ui5-webcomponents-topic-rl

Describe the bug The value of ComboBox doesn't update immediately after set value via useState.

Steps

  1. Go to codesandbox

  2. Click the down arrow to select one item from the dropdown list.

  3. Typing some text like 'test' in the value property on the right panel, you will see the ComboBox still shows the previous value text.

  4. Just click on the ComboBox, you will see the text updated.

Expected behavior The text value should be updated immediately once changing it.

Note: we tried to resolve the issue in the past with the referenced PR, but after further testing we found side effects on the component behaviour, described by this issue #2321 and that's why we reverted the change.

ilhan007 avatar Dec 08 '20 10:12 ilhan007

Hi! Do we have any progress on this fix?? We are using this component and facing this situation too. Best Regards

jaquelinebonoto avatar Dec 17 '20 16:12 jaquelinebonoto

It seems it will be handled with a backlog item.

Martotko avatar Feb 05 '21 13:02 Martotko

Hey colleagues, any news on this issue? We are facing the same issue now in multiple apps and have to replace all ComboBox with Select components.

MarcusNotheis avatar Mar 10 '21 14:03 MarcusNotheis

I am taking over that one. We included it in the current backlog and I will update you for any progress made in a few days.

MapTo0 avatar Mar 10 '21 15:03 MapTo0