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

[Bug]: ComboBox crashes when typing fast with allowCustomValue=true #16857

Closed
2 tasks done
tristantyler opened this issue Jun 24, 2024 · 1 comment · Fixed by #16866
Closed
2 tasks done

[Bug]: ComboBox crashes when typing fast with allowCustomValue=true #16857

tristantyler opened this issue Jun 24, 2024 · 1 comment · Fixed by #16866
Assignees
Labels

Comments

@tristantyler
Copy link

tristantyler commented Jun 24, 2024

Package

@carbon/react

Browser

Chrome

Package version

v1.60.2

React version

v18.2.0

Description

ComboBox with allowCustomValue will crash if you type too fast.

This error occurs in the console

Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

Reproduction/example

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

Steps to reproduce

Type quickly in the ComboBox.
Occurs in this storybook --> https://react.carbondesignsystem.com/?path=/story/components-combobox--allow-custom-value or in the linked stackblitz

Video in storybook:

Screen.Recording.2024-06-24.at.2.25.28.PM.mov

Suggested Severity

Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.

Application/PAL

No response

Code of Conduct

@tristantyler
Copy link
Author

I think this is most likely Sev 1 actually.

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

Successfully merging a pull request may close this issue.

3 participants