Skip to content

Commit 2654066

Browse files
committed
chore: fix ts
1 parent 91bb98a commit 2654066

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/OptionList/List.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ export type RawOptionListProps = Pick<
2929
| 'direction'
3030
| 'open'
3131
| 'disabled'
32-
| 'lockOptions'
33-
>;
32+
> & {
33+
lockOptions?: boolean;
34+
};
3435

3536
const RawOptionList = React.forwardRef<RefOptionListProps, RawOptionListProps>((props, ref) => {
3637
const {
@@ -42,7 +43,7 @@ const RawOptionList = React.forwardRef<RefOptionListProps, RawOptionListProps>((
4243
direction,
4344
open,
4445
disabled,
45-
lockOptions,
46+
lockOptions = false,
4647
} = props;
4748

4849
const containerRef = React.useRef<HTMLDivElement>(null);

0 commit comments

Comments
 (0)