We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f94381a commit 0cf265bCopy full SHA for 0cf265b
src/BootstrapBlazor/Components/TreeView/TreeView.razor.js
@@ -32,7 +32,7 @@ export function scroll(id, options) {
32
const el = document.getElementById(id);
33
const item = el.querySelector(".tree-content.active");
34
if (item) {
35
- item.parentElement.scrollTo(0, item.offsetTop, options || { behavior: 'smooth' });
+ item.parentElement.scrollTo({ top: item.offsetTop, left: 0, behavior: options?.behavior ?? 'smooth' });
36
}
37
38
0 commit comments