mui-datatables
mui-datatables copied to clipboard
Phone Number fields with dashes displaying on multiple lines
Phone Number fields with dashes display the number on multiple lines delimited on the dashes.
Expected Behavior
I would prefer the full phone number display on one line. Is this an expected behavior. When I remove the dashes from the number, it displays on one line.
Current Behavior
Ex: 835-525-2188 as a data value of a cell displays on 3 lines within the cell. Please see screen shot below.

If one of the values in the column didn't have dashes, then it seems that the field now has more space to place the number on two lines instead of three as shown in screenshot below.

| Tech | Version |
|---|---|
| Material-UI | 3.0.2 |
| MUI-datatables | 2.0.0-beta-29 |
| React | ^16.5.0 |
| browser | chrome |
| etc |
Resolved the issue with the following code
MUIDataTableBodyCell: {
responsiveStacked: {
whiteSpace: "pre",
},
}