Updating linting rules and fixing bug

This commit is contained in:
Jake Archibald
2018-10-02 14:56:20 +01:00
parent 37f5c0dd76
commit 765cc213d2
2 changed files with 2 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ export default class MultiPanel extends HTMLElement {
private _onKeyDown(event: KeyboardEvent) {
const selectedEl = document.activeElement;
const heading = getClosestHeading(selectedEl);
// if keydown event is not on heading element, ignore
if (!heading) return;