mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
bug fixed : selecting badge is breaking the table (#4416)
This commit is contained in:
parent
346308b6e4
commit
325e44cbdb
1 changed files with 3 additions and 1 deletions
|
|
@ -7,7 +7,9 @@ export const CustomSelect = ({ options, value, multiple, onChange, darkMode }) =
|
|||
|
||||
function renderValue(valueProps) {
|
||||
if (valueProps) {
|
||||
return valueProps.value.split(', ').map((value, index) => (
|
||||
const stringifyValue = String(valueProps.value);
|
||||
const arrayOfValueProps = stringifyValue.includes(',') ? stringifyValue.split(', ') : stringifyValue.split(' ');
|
||||
return arrayOfValueProps.map((value, index) => (
|
||||
<span key={index} {...valueProps} className="badge bg-blue-lt p-2 mx-1">
|
||||
{value}
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Reference in a new issue