118223: Stop space from scrolling down page

This commit is contained in:
Andreas Awouters
2024-10-04 09:40:20 +02:00
parent 181ea6d7c9
commit 2e1b1489b6
3 changed files with 12 additions and 3 deletions

View File

@@ -138,6 +138,7 @@ export class ItemBitstreamsComponent extends AbstractItemUpdateComponent impleme
// Otherwise we might clear the selection when a different action was intended, e.g. clicking a button or selecting
// a different bitstream.
if (event.target instanceof Element && event.target.tagName === 'BODY') {
event.preventDefault();
this.itemBitstreamsService.clearSelection();
}
}