fix: item variant dialog dropdown issue
This commit is contained in:
parent
f1dbc021fc
commit
b8b89a02af
@ -717,6 +717,18 @@ $.extend(erpnext.item, {
|
|||||||
.on('focus', function(e) {
|
.on('focus', function(e) {
|
||||||
$(e.target).val('').trigger('input');
|
$(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");
|
||||||
|
}
|
||||||
|
})
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user