mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	ui: fix focus in deployvm form (#5089)
Fixes #5087 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
		
							parent
							
								
									b0f2112dc2
								
							
						
					
					
						commit
						da382993c3
					
				| @ -21,8 +21,7 @@ | |||||||
|       style="width: 25vw;float: right;margin-bottom: 10px; z-index: 8" |       style="width: 25vw;float: right;margin-bottom: 10px; z-index: 8" | ||||||
|       :placeholder="$t('label.search')" |       :placeholder="$t('label.search')" | ||||||
|       v-model="filter" |       v-model="filter" | ||||||
|       @search="handleSearch" |       @search="handleSearch" /> | ||||||
|       autoFocus /> |  | ||||||
|     <a-table |     <a-table | ||||||
|       :columns="columns" |       :columns="columns" | ||||||
|       :dataSource="tableSource" |       :dataSource="tableSource" | ||||||
|  | |||||||
| @ -33,7 +33,6 @@ | |||||||
|     <template slot="ipAddress" slot-scope="text, record, index"> |     <template slot="ipAddress" slot-scope="text, record, index"> | ||||||
|       <a-form-item v-if="record.type!=='L2' && index === 0"> |       <a-form-item v-if="record.type!=='L2' && index === 0"> | ||||||
|         <a-input |         <a-input | ||||||
|           :autoFocus="record.type!=='L2'" |  | ||||||
|           style="width: 150px;" |           style="width: 150px;" | ||||||
|           v-decorator="['ipAddress' + record.id, { |           v-decorator="['ipAddress' + record.id, { | ||||||
|             rules: [{ |             rules: [{ | ||||||
| @ -50,10 +49,9 @@ | |||||||
|         </a-input> |         </a-input> | ||||||
|       </a-form-item> |       </a-form-item> | ||||||
|     </template> |     </template> | ||||||
|     <template slot="macAddress" slot-scope="text, record, index"> |     <template slot="macAddress" slot-scope="text, record"> | ||||||
|       <a-form-item> |       <a-form-item> | ||||||
|         <a-input |         <a-input | ||||||
|           :autoFocus="record.type==='L2' && index === 0" |  | ||||||
|           style="width: 150px;" |           style="width: 150px;" | ||||||
|           :placeholder="$t('label.macaddress')" |           :placeholder="$t('label.macaddress')" | ||||||
|           v-decorator="[`macAddress` + record.id, { |           v-decorator="[`macAddress` + record.id, { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user