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.
pull/27917/head^2
delvh 1 year ago committed by GitHub
parent 1ccdb546f0
commit 1f501dae9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web_src/js/components/DiffCommitSelector.vue

@ -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();
} }
}, },

Loading…
Cancel
Save