mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fix JS NPE when viewing specific range of PR commits (#27912)
This should be the easiest fix. While other solutions might be possible that exterminate the root cause, they will not be as trivial.
This commit is contained in:
		@@ -94,7 +94,7 @@ export default {
 | 
				
			|||||||
    focusElem(elem, prevElem) {
 | 
					    focusElem(elem, prevElem) {
 | 
				
			||||||
      if (elem) {
 | 
					      if (elem) {
 | 
				
			||||||
        elem.tabIndex = 0;
 | 
					        elem.tabIndex = 0;
 | 
				
			||||||
        prevElem.tabIndex = -1;
 | 
					        if (prevElem) prevElem.tabIndex = -1;
 | 
				
			||||||
        elem.focus();
 | 
					        elem.focus();
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user