mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	tab on autocomplete doesn't select first item, closes #243
This commit is contained in:
		
							parent
							
								
									4e198ca2f0
								
							
						
					
					
						commit
						bea28de6a0
					
				@ -12,7 +12,8 @@ function initAttributeNameAutocomplete({ $el, attributeType, open }) {
 | 
			
		||||
            hint: false,
 | 
			
		||||
            autoselect: true,
 | 
			
		||||
            openOnFocus: true,
 | 
			
		||||
            minLength: 0
 | 
			
		||||
            minLength: 0,
 | 
			
		||||
            tabAutocomplete: false
 | 
			
		||||
        }, [{
 | 
			
		||||
            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
 | 
			
		||||
@ -59,7 +60,8 @@ async function initLabelValueAutocomplete({ $el, open }) {
 | 
			
		||||
            hint: false,
 | 
			
		||||
            autoselect: true,
 | 
			
		||||
            openOnFocus: true,
 | 
			
		||||
            minLength: 0
 | 
			
		||||
            minLength: 0,
 | 
			
		||||
            tabAutocomplete: false
 | 
			
		||||
        }, [{
 | 
			
		||||
            displayKey: 'value',
 | 
			
		||||
            source: function (term, cb) {
 | 
			
		||||
 | 
			
		||||
@ -146,7 +146,8 @@ async function createPromotedAttributeRow(definitionAttr, valueAttr) {
 | 
			
		||||
                    hint: false,
 | 
			
		||||
                    autoselect: true,
 | 
			
		||||
                    openOnFocus: true,
 | 
			
		||||
                    minLength: 0
 | 
			
		||||
                    minLength: 0,
 | 
			
		||||
                    tabAutocomplete: false
 | 
			
		||||
                }, [{
 | 
			
		||||
                    displayKey: 'value',
 | 
			
		||||
                    source: function (term, cb) {
 | 
			
		||||
 | 
			
		||||
@ -76,7 +76,8 @@ function initNoteAutocomplete($el, options) {
 | 
			
		||||
            hint: false,
 | 
			
		||||
            autoselect: true,
 | 
			
		||||
            openOnFocus: true,
 | 
			
		||||
            minLength: 0
 | 
			
		||||
            minLength: 0,
 | 
			
		||||
            tabAutocomplete: false
 | 
			
		||||
        }, [
 | 
			
		||||
            {
 | 
			
		||||
                source: autocompleteSource,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user