Skip to content

Commit c321877

Browse files
JesmoDeviOvergaard
authored andcommitted
prevent page scroll
1 parent 4f59f41 commit c321877

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/packages/core/components/split-panel/split-panel.element.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ export class UmbSplitPanelElement extends LitElement {
240240
}
241241

242242
if (event.key === 'Home' || event.key === 'End') {
243+
event.preventDefault();
243244
const { width } = this.mainElement.getBoundingClientRect();
244245
const newPos = event.key === 'Home' ? 0 : width;
245246
this.#setPosition(newPos);

0 commit comments

Comments
 (0)