rpg-apps / characters

An application for creating and saving your DW characters
GNU General Public License v3.0
1 stars 2 forks source link

Fix bug in recursive nested Field components #3

Closed idanstark42 closed 2 years ago

idanstark42 commented 2 years ago

Recursive nested Field components are Field components which are created when a component is of a complex type (object or array). Those Field components are handling events in the same way as if they were top layer Fields. For example: The following data structure:

{ "name": "Grog", "race": { "name": "human", "move": { } } }

Will create a two Field components which have the attribute name="name". This will cause the same effect to ocour when pressing on either of them.

What needs to be done? Change the name attribute to include the entire path of the field in the original data structure. For the example above, the second name="name" would become name="race.name"

idanstark42 commented 2 years ago

resolved by #24