This commit is contained in:
Timothy Jaeryang Baek committed 2025-07-03 21:28:09 +04:00
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;
}