This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface AppState { | |
showDialog: boolean; | |
} | |
class App extends React.Component<{}, AppState> { | |
state: AppState; | |
constructor(props: {}) { | |
super(props); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface AppState { | |
showDialog: boolean; | |
} | |
class App extends React.Component<{}, AppState> { | |
state: AppState; | |
constructor(props: {}) { | |
super(props); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Props { | |
children: object; | |
title: string; | |
description: string; | |
close(): void; | |
} | |
class Dialog extends React.Component<Props> { | |
dialog: HTMLElement | null; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface AppState { | |
showDialog: boolean; | |
} | |
class App extends React.Component<{}, AppState> { | |
state: AppState; | |
constructor(props: {}) { | |
super(props); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Handle { | |
disengage(): void; | |
} | |
class Dialog extends React.Component<Props, {}> { | |
dialog: HTMLElement | null; | |
disabledHandle: Handle; | |
componentDidMount() { | |
this.disabledHandle = Disabled({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Handle { | |
disengage(): void; | |
} | |
class Dialog extends React.Component<Props> { | |
dialog: HTMLElement | null; | |
disabledHandle: Handle; | |
focusHandle: Handle; | |
componentDidMount() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Handle { | |
disengage(): void; | |
} | |
class Dialog extends React.Component<Props> { | |
dialog: HTMLElement | null; | |
disabledHandle: Handle; | |
focusHandle: Handle; | |
componentDidMount() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Handle { | |
disengage(): void; | |
} | |
class Dialog extends React.Component<Props> { | |
dialog: HTMLElement | null; | |
disabledHandle: Handle; | |
focusHandle: Handle; | |
keyHandle: Handle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Dialog extends React.Component<Props> { | |
dialog: HTMLElement | null; | |
disabledHandle: Handle; | |
focusHandle: Handle; | |
keyHandle: Handle; | |
focusedElementBeforeDialogOpened: HTMLInputElement | HTMLButtonElement; | |
componentDidMount() { | |
if (document.activeElement instanceof HTMLInputElement || | |
document.activeElement instanceof HTMLButtonElement) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.popup-outer-container { | |
align-items: center; | |
background: rgba(0, 0, 0, 0.2); | |
display: flex; | |
height: 100vh; | |
justify-content: center; | |
padding: 10px; | |
position: absolute; | |
width: 100%; | |
z-index: 10; |
OlderNewer