forked from MapComplete/MapComplete
		
	Fix search in filterViews
This commit is contained in:
		
							parent
							
								
									a4916a9b6d
								
							
						
					
					
						commit
						12fd59ff8d
					
				
					 2 changed files with 14 additions and 6 deletions
				
			
		|  | @ -226,6 +226,10 @@ export default class FilterView extends VariableUiElement { | |||
|         const settableFilter = new UIEventSource<FilterState>(undefined) | ||||
|         trigger.addCallbackAndRun(state => settableFilter.setData(state)) | ||||
|         settableFilter.addCallback(state => { | ||||
|             if(state === undefined){ | ||||
|                 // still initializing
 | ||||
|                 return | ||||
|             } | ||||
|             if(state.currentFilter === undefined){ | ||||
|                 allFields.forEach(f => f.GetValue().setData(undefined)); | ||||
|             } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue