fix: item variant dialog dropdown issue

This commit is contained in:
prssanna 2021-03-16 14:16:22 +05:30
parent f1dbc021fc
commit b8b89a02af

View File

@ -717,6 +717,18 @@ $.extend(erpnext.item, {
.on('focus', function(e) {
$(e.target).val('').trigger('input');
})
.on("awesomplete-open", () => {
let modal = field.$input.parents('.modal-dialog')[0];
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");
}
})
});
},