In both looper and sample tracks, after pressing Erase button and then selecting ‘No’ the screen doesn’t go away.
The same happens when trying to erase an empty pattern and selecting the only option ‘OK’.
I believe, it makes more sense to close the dialog no matter which option the user has chosen. After all, if they want to erase another track (which is rather a rare use case), they can press the Erase button again.