SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.51k stars 262 forks source link

Select doesn’t seem to set the selected option according to the `value` attribute #9896

Open giladvidal opened 5 days ago

giladvidal commented 5 days ago

Bug Description

When using Select/Option components, the value I set in 'value' in the Select is not set.

Affected Component

No response

Expected Behaviour

'value' should use the value.

Isolated Example

https://stackblitz.com/edit/github-hcyvzh?file=src%2FPageOne.jsx

Steps to Reproduce

  1. open the app
  2. select a value
  3. click to next page
  4. see the value not set ...

Log Output, Stack Trace or Screenshots

No response

Priority

High

UI5 Web Components Version

2.2.0

Browser

Edge

Operating System

Windows

Additional Context

No response

Organization

BDC-FOS

Declaration

IlianaB commented 4 days ago

Hello @ui5-webcomponents-topic-p I am forwarding this issue to you, because it seems ui5-select does not react on value update.

Steps to reproduce are described above, although I believe the query parameter tenant_filter is not in sync with both pages, that's why I edited the sample a little: https://stackblitz.com/edit/github-hcyvzh-w5msb2?file=src%2FPageOne.jsx,src%2FPageTwo.jsx

Regards, Iliana