The behaviour was improved in TYPO3 v12, there is also a patch for v11 (https://review.typo3.org/c/Packages/TYPO3.CMS/+/80116), applying this patch with composer-patches does not help if gridelements is installed because gridelements overrides the core behaviour
Also, the dialog displayed by gridelements is not localized (always displayed in English).
Reproduce
- create a content element, e.g. "textmedia" [1]
- create a shortcut element, referencing the first element [2]
- try to delete the first element (which has references) using the inline delete buttons in the page module
Versions
- gridelements: 11.0.0, also reproduced with latest "master"
- TYPO3 core: 11.5.29
Screenshots
delete via this button in page module

Intended behaviour:

Current behaviour:

Related core issues