Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 094d5dd

Browse files
author
Matt Goo
committed
docs(drawer): fix typo in readme (#764)
1 parent b4015bc commit 094d5dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: packages/drawer/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -330,13 +330,13 @@ import Button from '@material/react-button';
330330
class Drawer extends Component {
331331
mainContentEl = React.createRef();
332332

333-
focusFistFocusableItem = () => {
333+
focusFirstFocusableItem = () => {
334334
this.mainContentEl.current.querySelector('input, button').focus();
335335
}
336336

337337
onDrawerClose = () => {
338338
this.setState({open: false});
339-
this.focusFistFocusableItem();
339+
this.focusFirstFocusableItem();
340340
}
341341

342342
render() {
@@ -349,7 +349,7 @@ class Drawer extends Component {
349349
onClose={this.drawerOnClose}
350350
>
351351
<List>
352-
<ListItem onClick={this.focusFistFocusableItem}>
352+
<ListItem onClick={this.focusFirstFocusableItem}>
353353
<ListItemText primaryText='list item' />
354354
</ListItem>
355355
</List>

0 commit comments

Comments
 (0)