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) => {
5151 Array . isArray ( options ) && options . length > 0
5252 ? options
5353 : 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 ) ;
5555 const optionsWithoutCheckAllValues = [ ] ;
5656 optionsWithoutCheckAll . forEach ( ( v ) => {
5757 const vs = getCheckboxValue ( v ) ;
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ const DropdownItem: React.FC<DropdownItemProps> = (props) => {
6767
6868 const isActived = id === activedId ;
6969
70- const menuItemRef = useRef < HTMLDivElement > ( ) ;
71- const itemRef = useRef < HTMLDivElement > ( ) ;
70+ const menuItemRef = useRef < HTMLDivElement > ( null ) ;
71+ const itemRef = useRef < HTMLDivElement > ( null ) ;
7272
7373 const getDropdownItemStyle = ( ) => {
7474 const ele = menuItemRef . current ;
You can’t perform that action at this time.
0 commit comments