Skip to content

Commit dc1534a

Browse files
authored
docs(Combobox): correct scroll lock section (#1441)
1 parent 64561c6 commit dc1534a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/content/components/combobox.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,10 @@ You'll need to set a height on the `Combobox.Content` component and appropriate
326326

327327
## Scroll Lock
328328

329-
By default, when a user opens the Combobox, scrolling outside the content will be disabled. You can override this behavior by setting the `preventScroll` prop to `false`.
329+
To prevent the user from scrolling outside of the `Combobox.Content` component when open, you can set the `preventScroll` prop to `true`.
330330

331-
```svelte /preventScroll={false}/
332-
<Combobox.Content preventScroll={false}>
331+
```svelte /preventScroll={true}/
332+
<Combobox.Content preventScroll={true}>
333333
<!-- ... -->
334334
</Combobox.Content>
335335
```

0 commit comments

Comments
 (0)