mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	disable cache for attribute name autocomplete
This commit is contained in:
		| @@ -15,6 +15,8 @@ function initAttributeNameAutocomplete({ $el, attributeType, open }) { | |||||||
|             minLength: 0 |             minLength: 0 | ||||||
|         }, [{ |         }, [{ | ||||||
|             displayKey: 'name', |             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) => { |             source: async (term, cb) => { | ||||||
|                 const type = typeof attributeType === "function" ? attributeType() : attributeType; |                 const type = typeof attributeType === "function" ? attributeType() : attributeType; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user