Skip to content

Commit 4dd7dc0

Browse files
committed
fix: keydown event should be triggered during the capture phase
1 parent 003c4f8 commit 4dd7dc0

4 files changed

Lines changed: 298 additions & 275 deletions

File tree

demo/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ interface State {
1515
visible: boolean;
1616
activeIndex: number;
1717
mode: 'modal' | 'inline';
18+
drawerVisible: boolean;
1819
}
1920

2021
class App extends React.Component<any, Partial<State>> {
@@ -121,7 +122,7 @@ class App extends React.Component<any, Partial<State>> {
121122
);
122123
})}
123124
</div>
124-
<div className={inlineContainerClass} ref={ref => {this.container = ref;}}></div>
125+
<div className={inlineContainerClass} ref={ref => {this.container = ref; }}></div>
125126
</Col>
126127
</Row>
127128
<Viewer
@@ -154,5 +155,5 @@ class App extends React.Component<any, Partial<State>> {
154155

155156
ReactDOM.render(
156157
<App />,
157-
document.getElementById('root')
158+
document.getElementById('root'),
158159
);

0 commit comments

Comments
 (0)