Panel toggles are implemented by having a boolean socket with `is_panel_toggle` set to `True`, as the first item in that panel's children. These sockets are then hidden from the user, as the checkbox gets drawn in the panel's UI. In specific circumstances described in the bug report, the active selection can sometimes land on these sockets. Leading to the user being able to directly access these internal sockets. The changes in the patch make the "Remove Item" operator check if the resulting selection lands in a toggle socket, and move the selection to that toggle's parent panel if that is the case. Pull Request: https://projects.blender.org/blender/blender/pulls/141859