When following the steps - do not click on 'Apply Changes button'!
- In VE-> Categories. Add three categories
- Click on the drop-down arrow to delete two of them.
- Click 'Cancel'
- Re-open the box and one of the categories is still there
- Try to delete the remaining category - Uncaught TypeError is displayed:
Error: Cannot remove detached item
remove (undefined, line 380)
onRemoveCategory
emit
onRemoveCategory
emit
onClick
(anonymous function) ([native code], line 0)
dispatch (load.php, line 65)
handle (load.php, line 60)
Or
Uncaught TypeError: Cannot read property 'metaItem' of undefined ve.ui.MWCategoryWidget.onRemoveCategoryVM636:7 oo.EventEmitter.emit ve.ui.MWCategoryPopupWidget.onRemoveCategoryVM636:7 oo.EventEmitter.emitOO.ui.ButtonElement.onClickVM636:128 OO.ui.ButtonWidget.onClickload.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150218T2…:65 jQuery.event.dispatchload.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=20150218T2…:60 jQuery.event.add.elemData.handle
After clicking the 'Apply button' at any step(even at the last one when it looks like a category cannot be removed), all come back to normal workflow and all categories get deleted.