You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @Saladinek, thank you for reporting this issue! Unfortunately this is impossible to fix with the current way Precise-UI handles the data property. The reason for that is, that the order for enumerating an object never really was defined, until ES 6. Every JavaScript method that enumerates an object obeys to the following rules in which order the keys are enumerated:
Integer indicies in asc order
String values in the order they were added
Symbols in the order they were added
This means for your case that 1451 always comes first, except if you turn it into a string and prefix it with a 0 so it looks like this: '01451'. Then the order will stay the same.
Bug Report
Prerequisites
For more information, see the
CONTRIBUTING
guide.Versions
Precise-UI 1.0.0
Description
If data is passed to AccordionTable component and contains a key which can be interpreted as numeric value, the UI and logic breaks.
Steps to Reproduce
Expected behavior: Table has a column 1451 with value 'Random Value' on every row + cellRenderer returns proper key and value pair
Actual behavior: Column is added at the beginning of table + cellRenderer returns incorrect key and value pair
Environment details: Chrome, Win10
The text was updated successfully, but these errors were encountered: