talk-tool/priv/static/client/emoji-picker.js
2022-10-09 12:46:45 +03:00

14 lines
289 B
JavaScript

export const emojiPickerHook = {
mounted() {
this.el.addEventListener("scroll", e => {
const targetId = e.detail?.id;
if (targetId) {
const el = document.getElementById(targetId);
if (el) {
el.scrollIntoView();
}
}
});
}
};