fix strict null

This commit is contained in:
Anthony Dresser
2020-03-11 00:35:08 -07:00
parent 324451ea22
commit ad472c80be
3 changed files with 7 additions and 4 deletions

View File

@@ -147,9 +147,9 @@ export default class TableComponent extends ComponentBase implements IComponent,
});
}));
this._table.grid.onKeyDown.subscribe((e: KeyboardEvent) => {
this._table.grid.onKeyDown.subscribe((e: DOMEvent) => {
if (this.moveFocusOutWithTab) {
let event = new StandardKeyboardEvent(e);
let event = new StandardKeyboardEvent(e as KeyboardEvent);
if (event.equals(KeyMod.Shift | KeyCode.Tab)) {
e.stopImmediatePropagation();
(<HTMLElement>(<HTMLElement>this._inputContainer.nativeElement).previousElementSibling).focus();