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

[Select]: deprecation warning fired about using Textbox in an uncontrolled way #6883

Closed
1 task done
edleeks87 opened this issue Aug 7, 2024 · 2 comments · Fixed by #6996
Closed
1 task done

[Select]: deprecation warning fired about using Textbox in an uncontrolled way #6883

edleeks87 opened this issue Aug 7, 2024 · 2 comments · Fixed by #6996

Comments

@edleeks87
Copy link
Contributor

Description

We are using Textbox in an uncontrolled way in the Select components which is causing a deprecation warning to be logged in the console even when the component has an onChange and value passed

Reproduction

https://stackblitz.com/edit/parsium-carbon-starter-7feesv

Steps to reproduce

Load repro and inspect console for deprecation warning

JIRA ticket numbers (Sage only)

No response

Suggested solution

Use the composed Textbox in a controlled way or add a mechanism to disable the warning when in Select

Carbon version

latest

Design tokens version

4.32.0

Relevant browsers

Firefox, Chrome, Safari, Microsoft Edge

Relevant OSs

MacOS

Additional context

No response

Confidentiality

  • I confirm there is no confidential or commercially sensitive information included.
@edleeks87 edleeks87 added Bug triage Triage Required labels Aug 7, 2024
@Parsium
Copy link
Contributor

Parsium commented Aug 13, 2024

FE-6759

@Parsium Parsium added On Backlog and removed triage Triage Required labels Aug 13, 2024
edleeks87 added a commit that referenced this issue Oct 3, 2024
…rom being fired

Ensures that Textbox used in Select components is used in a controlled manner to prevent the
deprecation warnings from being fired

fix #6883
carbonci pushed a commit that referenced this issue Oct 7, 2024
### [142.13.4](v142.13.3...v142.13.4) (2024-10-07)

### Bug Fixes

* **select:** prevent deprecation warning about uncontrolled textbox from being fired ([6de179c](6de179c)), closes [#6883](#6883)
@carbonci
Copy link
Collaborator

carbonci commented Oct 7, 2024

🎉 This issue has been resolved in version 142.13.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants