File tree Expand file tree Collapse file tree 4 files changed +139
-211
lines changed Expand file tree Collapse file tree 4 files changed +139
-211
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ const CheckboxGroup: FC<CheckboxGroupProps> = (props) => {
51
51
Array . isArray ( options ) && options . length > 0
52
52
? options
53
53
: React . Children . map ( children , ( child ) => ( child as ReactElement ) . props ) ;
54
- const optionsWithoutCheckAll = internalOptions . filter ( ( t ) => typeof t !== 'object' || ! t . checkAll ) ;
54
+ const optionsWithoutCheckAll = internalOptions . filter ( ( t : CheckboxOption ) => typeof t !== 'object' || ! t . checkAll ) ;
55
55
const optionsWithoutCheckAllValues = [ ] ;
56
56
optionsWithoutCheckAll . forEach ( ( v ) => {
57
57
const vs = getCheckboxValue ( v ) ;
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ const DropdownItem: React.FC<DropdownItemProps> = (props) => {
67
67
68
68
const isActived = id === activedId ;
69
69
70
- const menuItemRef = useRef < HTMLDivElement > ( ) ;
71
- const itemRef = useRef < HTMLDivElement > ( ) ;
70
+ const menuItemRef = useRef < HTMLDivElement > ( null ) ;
71
+ const itemRef = useRef < HTMLDivElement > ( null ) ;
72
72
73
73
const getDropdownItemStyle = ( ) => {
74
74
const ele = menuItemRef . current ;
You can’t perform that action at this time.
0 commit comments