Outgoing: Ensure that sends still succeed without CDS

This commit is contained in:
Scott Nonnenberg 2020-09-16 07:22:46 -07:00 committed by Josh Perez
parent ce067258a0
commit ec8ac1db58
4 changed files with 30 additions and 18 deletions

View file

@ -204,6 +204,12 @@ export class Lightbox extends React.Component<Props, State> {
public previousFocus: HTMLElement | null = null;
public constructor(props: Props) {
super(props);
this.state = {};
}
public componentDidMount(): void {
this.previousFocus = document.activeElement as HTMLElement;