forked from MapComplete/MapComplete
		
	Fix rendering issue
This commit is contained in:
		
							parent
							
								
									2dd14028ce
								
							
						
					
					
						commit
						7a9c21f83d
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -360,9 +360,13 @@ class TagRendering extends UIElement implements TagDependantUIElement {
 | 
			
		|||
            return undefined;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        const prepost = Translations.W(freeform.template).InnerRender().split("$");
 | 
			
		||||
        const prepost = Translations.W(freeform.template).InnerRender()
 | 
			
		||||
            .replace("$$$","$string$")
 | 
			
		||||
            .split("$");
 | 
			
		||||
        const type = prepost[1];
 | 
			
		||||
        
 | 
			
		||||
        console.log("PrePost:", prepost);
 | 
			
		||||
 | 
			
		||||
        let isValid = TagRenderingOptions.inputValidation[type];
 | 
			
		||||
        if (isValid === undefined) {
 | 
			
		||||
            isValid = (str) => true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -399,7 +399,7 @@ export default class Translations {
 | 
			
		|||
                qName: {
 | 
			
		||||
                    question: new T({en: "What is the name of this bicycle shop?", nl: "Wat is de naam van deze fietszaak?", fr: "Quel est le nom du magasin de vélo?"}),
 | 
			
		||||
                    render: new T({en: "This bicycle shop is called {name}", nl: "Deze fietszaak heet <b>{name}</b>", fr: "Ce magasin s'appelle <b>{name}</b>"}),
 | 
			
		||||
                    template: new T({en: "This bicycle shop is called: $$$", nl: "Deze fietszaak heet: <b>$$$</b>", fr: "Ce magasin s'appelle <b>$$$</b>"})
 | 
			
		||||
                    template: new T({en: "This bicycle shop is called: $$$", nl: "Deze fietszaak heet: <b>$$$</b>", fr: "Ce magasin s'appelle $$$"})
 | 
			
		||||
                },
 | 
			
		||||
                secondHand: {
 | 
			
		||||
                    question: new T({en: "Does this shop sell second-hand bikes?", nl: "Verkoopt deze winkel tweedehands fietsen?", fr: "Est-ce ce magasin vend des vélos d'occasion"}),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue