When all to dos or bookmarks are removed, you can no longer add new items until the page has been reloaded. Cause: the Javascript no longer has any rows to clone.
Solution: always include the "to-be-cloned" row which is added manually to the array in the controller with a specific name. This name is checked for in the frontend and if it matches, the "to-be-cloned" CSS class is added to it.
When all to dos or bookmarks are removed, you can no longer add new items until the page has been reloaded. Cause: the Javascript no longer has any rows to clone.
Solution: always include the "to-be-cloned" row which is added manually to the array in the controller with a specific name. This name is checked for in the frontend and if it matches, the "to-be-cloned" CSS class is added to it.