From 50401954d1e28b25a5f95d000d480499e2d71ad8 Mon Sep 17 00:00:00 2001 From: azivner Date: Mon, 19 Nov 2018 22:17:08 +0100 Subject: [PATCH] disable cache for attribute name autocomplete --- src/public/javascripts/services/attribute_autocomplete.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/public/javascripts/services/attribute_autocomplete.js b/src/public/javascripts/services/attribute_autocomplete.js index 804ba79e3..fee0b1aed 100644 --- a/src/public/javascripts/services/attribute_autocomplete.js +++ b/src/public/javascripts/services/attribute_autocomplete.js @@ -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;