mirror of
				https://github.com/KevinMidboe/nova-map-fields.git
				synced 2025-10-29 17:50:27 +00:00 
			
		
		
		
	Trigger change when updating selected route type.
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/js/field.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/js/field.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -8,13 +8,14 @@ | ||||
|     /> | ||||
|  | ||||
|     <div v-if="edit" class="flex block my-2"> | ||||
|       <p><b>Velg rute type:</b></p> | ||||
|       <div v-for="option in routeTypes" class="ml-2"> | ||||
|         <input | ||||
| 	  type="radio" | ||||
| 	  :id="option.value" | ||||
| 	  :checked="option.value === selectedRouteType" | ||||
| 	  :value="option.value" | ||||
| 	  @change="e => selectedRouteType = e.target.value"> | ||||
| 	  @change="updatedRouteType"> | ||||
|         <label :for="option.value">{{ option.name }}</label> | ||||
|       </div> | ||||
|     </div> | ||||
| @@ -80,6 +81,11 @@ export default { | ||||
|       }); | ||||
|     }, | ||||
|  | ||||
|     updateRouteType(event) { | ||||
|       this.selectedRouteType = event.target.value; | ||||
|       this.triggerChange(); | ||||
|     }, | ||||
|  | ||||
|     async triggerChange(markers) { | ||||
|       if (markers.length === 0) { | ||||
|         return; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user