Move CSS check up

This commit is contained in:
Cohee 2024-09-05 20:13:59 +03:00
parent 1d390195fe
commit 5c7b95cc15

View File

@ -1966,11 +1966,11 @@ function doCurMemberListPopout() {
}
jQuery(() => {
$(document).on('input', '#rm_group_chats_block .autoSetHeight', function () {
if (!CSS.supports('field-sizing', 'content')) {
if (!CSS.supports('field-sizing', 'content')) {
$(document).on('input', '#rm_group_chats_block .autoSetHeight', function () {
resetScrollHeight($(this));
}
});
});
}
$(document).on('click', '.group_select', function () {
const groupId = $(this).attr('chid') || $(this).attr('grid') || $(this).data('id');