Skip to content

Commit

Permalink
update example caption for on keydown
Browse files Browse the repository at this point in the history
  • Loading branch information
conquera99 committed Dec 18, 2020
1 parent 14b1814 commit c490761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default () => {
};

const keyDown = (e, preventDefault) => {
if(e.keyCode === 13) preventDefault();
if (e.keyCode === 13) preventDefault();
};

return (
Expand Down Expand Up @@ -130,7 +130,7 @@ export default () => {
<Picker<Moment> {...sharedProps} locale={enUS} tabIndex={-1} />
</div>
<div style={{ margin: '0 8px' }}>
<h3>Keyboard event with disabled key</h3>
<h3>Keyboard event with prevent default behaviors</h3>
<Picker<Moment> {...sharedProps} locale={enUS} onKeyDown={keyDown} />
</div>
</div>
Expand Down

0 comments on commit c490761

Please sign in to comment.