Closed iPurpl3x closed 1 year ago
@luceos or @davwheat would you be able to merge this and tag a new version? The sooner, the better, as we (@glowingblue) have this error in production currently.
Thanks for merging @davwheat !
Could you also tag a new version, please?
Ah it's tagged now, thanks !
When the tags page UI is extended and customized, the current code that tries to manipulate the virtual DOM doing thing like
might break because the indexes of children have changed.
This PR adds a safer and more flexible way of manipulating the virtual DOM using a recursive helper function that searches for a node with a certain class name.
Tested locally on the instance that was failing and everything seems to be fine.
While making this PR I realized there was strange (seemingly copy-pasted) comments and code that was referring to "knowledge base" even though this is the blog extension and not the knowledge base extension.