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]: Input component does not invoke onChange hook when clearing text #3298

Open
2 tasks done
mderner-ca opened this issue Feb 17, 2025 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@mderner-ca
Copy link

Browser

Chrome

Package version

3.0.383

React version

18.0.0

Description

When the input component is used like so:

      <Input
        // Find input here: https://cloudscape.design/components/input/
        type="search"
        onChange={({ detail }) => {
          setSearchTerms(detail.value)
          // some stuff
        }}
        value={searchTerms}
      ></Input>

The browser renders a clear button on the end of the input field which can be used to clear the text. This button does not invoke the code assigned to onChange.

Source code

No response

Reproduction

No response

Code of Conduct

@mderner-ca mderner-ca added the bug Something isn't working label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant