Skip to content

Commit

Permalink
noDefaultPrevention: better prop description
Browse files Browse the repository at this point in the history
  • Loading branch information
satelllte committed Jan 13, 2024
1 parent 70190cb commit 2f488c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/docs/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ function IndexPage() {
type: 'boolean',
defaultValue: 'false',
description:
'To prevent scrolling, "event.preventDefault()" is called when the value changes, so for most cases you don\'t need to change this behaviour. However, if your application needs some more customized behaviour, you can set this prop to true and handle it on its own.',
'To prevent scrolling, "event.preventDefault()" is called when the value changes, but for most cases you don\'t need to change this behaviour. However, if your application needs some more customized one, you can set this prop to true and handle scroll prevention on your own.',
},
]}
/>
Expand Down
4 changes: 2 additions & 2 deletions packages/react-knob-headless/src/useKnobKeyboardControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ type UseKnobKeyboardControlProps = {
) => void;
/**
* To prevent scrolling, "event.preventDefault()" is called when the value changes,
* so for most cases you don't need to change this behaviour.
* However, if your application needs some more customized behaviour, you can set this prop to true and handle it on its own.
* but for most cases you don't need to change this behaviour.
* However, if your application needs some more customized one, you can set this prop to true and handle scroll prevention on your own.
*/
readonly noDefaultPrevention?: boolean;
};
Expand Down

0 comments on commit 2f488c5

Please sign in to comment.