fix: remove code that causes upscrolling (#35140)

Co-authored-by: Dietmar Fischer <fischer@kk-software.de>
This commit is contained in:
Didiman1998 2023-06-07 19:05:44 +02:00 committed by GitHub
parent 781548e46e
commit 0c12d4d3c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -772,12 +772,6 @@ $.extend(erpnext.item, {
if (modal) {
$(modal).removeClass("modal-dialog-scrollable");
}
})
.on("awesomplete-close", () => {
let modal = field.$input.parents('.modal-dialog')[0];
if (modal) {
$(modal).addClass("modal-dialog-scrollable");
}
});
});
},