open-scd
open-scd copied to clipboard
Change appendChild / prependChild to createActions
In order to make maximum use of the Action API, we should change all the appendChild and prependChild occurrences to createActions. This is used in OpenSCD and CoMPAS.
This will make sure that the new element will be in the right place. If a new XSD schema rolls out, we only have to change 1 function, the foundation.
usages:
connectedAp.ts subnetwork.ts editors/subscription/foundation.ts menu/virtualtemplateied/foundation.ts wizards/address.ts wizards/bda.ts wizards/clientln.ts wizards/conductingequipment.ts wizards/da.ts wizards/reportcontrol.ts wizards/sampledvaluedcontrolts wizards/voltagelevel.ts wizards/subNetwork.ts
@JakobVogelsang will look into the current usage and determine if change is needed.
It is a bug when undo will result in a missing element.
Hello there,
Thank you for opening this issue! We appreciate your interest in our project. However, it seems that this issue hasn't had any activity for a while. To ensure that our issue tracker remains organized and efficient, we occasionally review and address stale issues.
If you believe this issue is still relevant and requires attention, please provide any additional context, updates, or details that might help us understand the problem better. Feel free to continue the conversation here.
If the issue is no longer relevant, you can simply close it. If you're uncertain, you can always reopen it later.
Remember, our project thrives on community contributions, and your input matters. We're here to collaborate and improve. Thank you for being part of this journey!
Fixed by the new action API