disable cache for attribute name autocomplete

pull/255/head
azivner 2018-11-19 22:17:08 +07:00
parent 32a9df8489
commit 50401954d1
1 changed files with 2 additions and 0 deletions

@ -15,6 +15,8 @@ function initAttributeNameAutocomplete({ $el, attributeType, open }) {
minLength: 0
}, [{
displayKey: 'name',
// disabling cache is important here because otherwise cache can stay intact when switching between attribute type which will lead to autocomplete displaying attribute names for incorrect attribute type
cache: false,
source: async (term, cb) => {
const type = typeof attributeType === "function" ? attributeType() : attributeType;