refac
This commit is contained in:
1 parent
d2485bbf09
commit
75096c24ac
3 files changed
+21
-17
No files matched your search
@@ -123,6 +123,11 @@
|
||||
if (dispatch) {
|
||||
const tr = state.tr.setSelection(TextSelection.create(doc, template.from, template.to));
|
||||
dispatch(tr);
|
||||
|
||||
// Scroll to the selected template
|
||||
dispatch(
|
||||
tr.scrollIntoView().setMeta('preventScroll', true) // Prevent default scrolling behavior
|
||||
);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user