-
Notifications
You must be signed in to change notification settings - Fork 265
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
[Input]: [state binded to value prop not getting reflected in UI] #9884
Comments
Hi @aviral49 Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository. Hi Colleagues, it doesn't seem possible to control the Example: https://stackblitz.com/edit/github-qgw27d?file=main.js,index.html,package.json Reproduction Steps:
Additionally, it's common in React to fully control input components, meaning that if a user types something into the input which implements a Example: https://stackblitz.com/edit/github-ve5kvu?file=src%2FApp.tsx,src%2FTestInput.tsx |
Hello @ui5-webcomponents-topic-rl , please have a look at this issue. It seems it is not possible to control the ui5-input by setting the value property inside the input event, while native input supports such behavior. Regards, |
Hi @IlianaB, did we make any progress on the bug ? Thanks, |
Hello @aviral49 Since react has some special handling for Best Regards, |
🎉 This issue has been resolved in version v1.24.12 🎉 The release is available on v1.24.12 Your semantic-release bot 📦🚀 |
Describe the bug
Hi, We are using the Input component, we are binding the value prop to state variable. While handling the onInput event, setting the state based on some validation but its not getting reflected in the UI.
version:
"@ui5/webcomponents-react": "1.29.10",
Attaching the sandbox link - https://stackblitz.com/edit/github-virvsk?file=src%2FTestInput.tsx,src%2FApp.tsx,package.json,src%2Fmain.tsx
Isolated Example
https://stackblitz.com/edit/github-virvsk?file=src%2FTestInput.tsx,src%2FApp.tsx,package.json,src%2Fmain.tsx
Reproduction steps
Expected Behaviour
On setting the state to any value, should get reflected in the UI.
In our case, on entering the 5th digit, it should reflect the current value in state variable to ui.
Screenshots or Videos
UI5 Web Components for React Version
1.29.10
UI5 Web Components Version
1.24.9
Browser
Chrome
Operating System
No response
Additional Context
No response
Relevant log output
No response
Organization
SAP
Declaration
The text was updated successfully, but these errors were encountered: