Material-ui: [Select] Multiple select with chips as clickable fires the select.

Created on 1 Dec 2018  路  8Comments  路  Source: mui-org/material-ui

Context 馃敠

When clicking the chips the select fires and shows the options. How can you override this behavior so that when I click a chip the select won't fire and just do whatever the onClick of the chip?

Codesandbox

| Tech | Version |
|--------------|---------|
| Material-UI | v3.6.0 |
| React | |
| Browser | |
| TypeScript | |
| etc. | |

Select question

All 8 comments

@jjdp How can we reproduce it?

added the Codesandbox

@jjdp You can use e.stopPropagation() on a mouse down event e.g. https://codesandbox.io/s/material-demo-ohj0g

Thank you!

This no sandbox test no longer works.

Same here. The sandbox test no longer works.

@rodriguise @kHRISl33t Fixed.

@joshwooding Thanks for the quick fix! You are awesome! :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryanflorence picture ryanflorence  路  3Comments

mattmiddlesworth picture mattmiddlesworth  路  3Comments

newoga picture newoga  路  3Comments

FranBran picture FranBran  路  3Comments

mb-copart picture mb-copart  路  3Comments