Prevent scroll on focus
This commit is contained in:
parent
67f908aa8d
commit
e8da4326b6
@ -293,7 +293,7 @@ export function setFocus(element = null, tabFocus = false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set regular focus
|
// Set regular focus
|
||||||
element.focus();
|
element.focus({ preventScroll: true });
|
||||||
|
|
||||||
// If we want to mimic keyboard focus via tab
|
// If we want to mimic keyboard focus via tab
|
||||||
if (tabFocus) {
|
if (tabFocus) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user