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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Joy][Chip] onClick is not working #34425

Closed
2 tasks done
olivierkastel opened this issue Sep 21, 2022 · 2 comments 路 Fixed by #34455
Closed
2 tasks done

[Joy][Chip] onClick is not working #34425

olivierkastel opened this issue Sep 21, 2022 · 2 comments 路 Fixed by #34455
Assignees
Labels
bug 馃悰 Something doesn't work component: chip This is the name of the generic UI component, not the React module! package: joy-ui Specific to @mui/joy

Comments

@olivierkastel
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 馃暪

Steps:

  1. Go to https://codesandbox.io/s/winter-cloud-2it1xn?file=/demo.js
  2. Try to click on the chip. Nothing happens.
  3. Try to click on the button. It worked.

Current behavior 馃槸

The handler "onClick" is not triggered when the user clicks on the chip.

Expected behavior 馃

The handler should be called

Context 馃敠

No response

Your environment 馃寧

npx @mui/envinfo
 System:
    OS: macOS 12.6
  Binaries:
    Node: 16.13.0 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 8.1.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 105.0.5195.125
  npmPackages:
    @emotion/react: ^11.10.0 => 11.10.0 
    @emotion/styled: ^11.10.0 => 11.10.0 
    @mui/base:  5.0.0-alpha.94 
    @mui/core-downloads-tracker:  5.10.6 
    @mui/icons-material: ^5.10.2 => 5.10.2 
    @mui/joy: ^5.0.0-alpha.46 => 5.0.0-alpha.46 
    @mui/lab: ^5.0.0-alpha.96 => 5.0.0-alpha.96 
    @mui/material: ^5.10.5 => 5.10.5 
    @mui/private-theming:  5.10.6 
    @mui/styled-engine:  5.10.6 
    @mui/styles: ^5.9.3 => 5.9.3 
    @mui/system:  5.10.6 
    @mui/types:  7.2.0 
    @mui/utils:  5.10.6 
    @mui/x-data-grid:  5.17.3 
    @mui/x-data-grid-pro: ^5.17.3 => 5.17.3 
    @mui/x-date-pickers: ^5.0.0-beta.7 => 5.0.0-beta.7 
    @mui/x-date-pickers-pro: ^5.0.0-beta.7 => 5.0.0-beta.7 
    @mui/x-license-pro: ^5.16.0 => 5.17.0 
    @types/react:  18.0.17 
    react: ^18.2.0 => 18.2.0 
    react-dom: ^18.2.0 => 18.2.0 
    styled-components: ^5.3.5 => 5.3.5 
    typescript:  4.7.4 
@olivierkastel olivierkastel added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 21, 2022
@olivierkastel
Copy link
Author

Even the official example in the doc is not working:
https://mui.com/joy-ui/react-chip/#clickable-and-deletable

Clicking on the delete icons works, but not on the chip itself.

@siriwatknp siriwatknp changed the title JoyUI - Chip: onClick is not working [Joy][Chip] onClick is not working Sep 22, 2022
@siriwatknp
Copy link
Member

Looks like a bug to me.

@siriwatknp siriwatknp added bug 馃悰 Something doesn't work component: chip This is the name of the generic UI component, not the React module! package: joy-ui Specific to @mui/joy and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Sep 22, 2022
@siriwatknp siriwatknp self-assigned this Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 馃悰 Something doesn't work component: chip This is the name of the generic UI component, not the React module! package: joy-ui Specific to @mui/joy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants