close #1554 Fixed: Item autocomplete/search not working in invoice/bill

This commit is contained in:
Cüneyt Şentürk
2020-08-26 12:57:06 +03:00
parent 77913c6d01
commit d64917a3e0
3 changed files with 5 additions and 3 deletions

View File

@ -620,7 +620,9 @@ export default {
methods: {
remoteMethod(query) {
document.getElementById('form-select-' + this.name).getElementsByTagName("input")[0].readOnly = false;
if (document.getElementById('form-select-' + this.name)) {
document.getElementById('form-select-' + this.name).getElementsByTagName("input")[0].readOnly = false;
}
if (query !== '') {
this.loading = true;