mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix undefined error on typedInput due to valueLabel used before being added
This commit is contained in:
		| @@ -225,6 +225,8 @@ | ||||
|  | ||||
|             this.selectLabel = $('<span class="red-ui-typedInput-type-label"></span>').appendTo(this.selectTrigger); | ||||
|  | ||||
|             this.valueLabelContainer = $('<div class="red-ui-typedInput-value-label">').appendTo(this.uiSelect) | ||||
|  | ||||
|             this.types(this.options.types); | ||||
|  | ||||
|             if (this.options.typeField) { | ||||
| @@ -261,8 +263,6 @@ | ||||
|                 that.uiSelect.addClass('red-ui-typedInput-focus'); | ||||
|             }) | ||||
|  | ||||
|             this.valueLabelContainer = $('<div class="red-ui-typedInput-value-label">').appendTo(this.uiSelect) | ||||
|  | ||||
|             // explicitly set optionSelectTrigger display to inline-block otherwise jQ sets it to 'inline' | ||||
|             this.optionSelectTrigger = $('<button tabindex="0" class="red-ui-typedInput-option-trigger" style="display:inline-block"><span class="red-ui-typedInput-option-caret"><i class="red-ui-typedInput-icon fa fa-caret-down"></i></span></button>').appendTo(this.uiSelect); | ||||
|             this.optionSelectLabel = $('<span class="red-ui-typedInput-option-label"></span>').prependTo(this.optionSelectTrigger); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user