react-bootstrap-table / react-bootstrap-table2

Next Generation of react-bootstrap-table
https://react-bootstrap-table.github.io/react-bootstrap-table2/
MIT License
1.27k stars 431 forks source link

Data attributes containing brackets #803

Open pierrefg opened 5 years ago

pierrefg commented 5 years ago

Hi,

Some of my attributes' contain brackets, ex: { "foo [012]" : "bar", "foo [0113]" : "bar", "foo [001]" : "bar" }

The table does'nt display anything in these columns. I think it splits the string thinking I want a sub-object (something like data[foo][012]). I tried to escape like "\[" but it didn't work. Any ideas ?

AllenFang commented 5 years ago

@PierreFG I will figure out this.. but so far I didn't saw this case(Object key contain brackets)

AllenFang commented 5 years ago

anyway, I will do suggest to avoid this kind of data