Menu-Editor
Menu-Editor copied to clipboard
Vanilla Javascript Menu Editor (made with Typescript)
Delete, edit, update, output, add don't work based on the code in github. But if I copy the code from the demo instead, it works.
I've created a small demo: ``` var items = [{"text":"Home","href":"/home","icon":"fa-solid fa-house","tooltip":"Go to home page","children":[]},{"text":"About Us","href":"/about","icon":"fa-solid fa-address-card","tooltip":"Learn more about our company","children":[]},{"text":"Services","href":"/services","icon":"fa-solid fa-gear","tooltip":"Discover the services we offer","children":[{"text":"Service 1","href":"/services/1","icon":"cog","tooltip":"Details for Service 1","children":[]},{"text":"Service 2","href":"/services/2","icon":"cog","tooltip":"Details...
Your old menu editor didn't add an empty children array when there were not children. Can you add a check for the children-variable to be present so the items are...