mirror of
				https://github.com/bigskysoftware/htmx.git
				synced 2025-11-04 07:24:06 +00:00 
			
		
		
		
	boost anchors w/a _self target
				
					
				
			fixes https://github.com/bigskysoftware/htmx/issues/817
This commit is contained in:
		
							parent
							
								
									8290da624b
								
							
						
					
					
						commit
						3f4b7bfb93
					
				@ -1207,7 +1207,7 @@ return (function () {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        function boostElement(elt, nodeData, triggerSpecs) {
 | 
					        function boostElement(elt, nodeData, triggerSpecs) {
 | 
				
			||||||
            if ((elt.tagName === "A" && isLocalLink(elt) && elt.target === "") || elt.tagName === "FORM") {
 | 
					            if ((elt.tagName === "A" && isLocalLink(elt) && (elt.target === "" || elt.target === "_self")) || elt.tagName === "FORM") {
 | 
				
			||||||
                nodeData.boosted = true;
 | 
					                nodeData.boosted = true;
 | 
				
			||||||
                var verb, path;
 | 
					                var verb, path;
 | 
				
			||||||
                if (elt.tagName === "A") {
 | 
					                if (elt.tagName === "A") {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user