We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae690f1 commit 5c25fc8Copy full SHA for 5c25fc8
1 file changed
frontend/MSA.vue
@@ -554,7 +554,10 @@ export default {
554
},
555
handleMapBlockClick(index) {
556
const top = document.querySelector('.minimap').offsetHeight + 64; // app-bar + minimap
557
- const box = this.$refs.msaView.$el.children[index].getBoundingClientRect();
+ const blocks = this.$refs.msaView?.$el?.querySelectorAll?.('.msa-block-wrapper');
558
+ const target = blocks && blocks[index];
559
+ if (!target) return;
560
+ const box = target.getBoundingClientRect();
561
window.scrollTo({ behavior: 'smooth', top: box.top + window.scrollY - top });
562
563
handleAlphabetChange(event) {
0 commit comments