Merge pull request #2493 from nabinhait/develop
[fix] Auto completion fix for dynamic link field
This commit is contained in:
commit
11f718a0af
1 changed files with 6 additions and 6 deletions
|
|
@ -1310,13 +1310,13 @@ frappe.ui.form.ControlLink = frappe.ui.form.ControlData.extend({
|
|||
}
|
||||
});
|
||||
|
||||
var doctype = me.get_options();
|
||||
if(!doctype) return;
|
||||
if (!me.$input.cache[doctype]) {
|
||||
me.$input.cache[doctype] = {};
|
||||
}
|
||||
|
||||
this.$input.on("input", function(e) {
|
||||
var doctype = me.get_options();
|
||||
if(!doctype) return;
|
||||
if (!me.$input.cache[doctype]) {
|
||||
me.$input.cache[doctype] = {};
|
||||
}
|
||||
|
||||
var term = e.target.value;
|
||||
|
||||
if (me.$input.cache[doctype][term]!=null) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue