1
0
mirror of https://gitcode.com/gitea/gitea.git synced 2025-07-09 14:46:41 +08:00

Fix JS NPE when viewing specific range of PR commits ()

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:
delvh
2023-11-06 03:05:24 +01:00
committed by GitHub
parent 1ccdb546f0
commit 1f501dae9e

@ -94,7 +94,7 @@ export default {
focusElem(elem, prevElem) {
if (elem) {
elem.tabIndex = 0;
prevElem.tabIndex = -1;
if (prevElem) prevElem.tabIndex = -1;
elem.focus();
}
},