small fixes related to inherited attributes

This commit is contained in:
zadam
2020-08-11 22:52:17 +02:00
parent 8d0df6ddb9
commit 935e5de493
6 changed files with 30 additions and 9 deletions

View File

@@ -102,6 +102,12 @@ function initNoteAutocomplete($el, options) {
}
});
$el.on('autocomplete:opened', () => {
if ($el.attr("readonly")) {
$el.autocomplete('close');
}
});
return $el;
}