Skip to content

Commit fd3d31d

Browse files
committed
chore: revert 7db014e
1 parent 5f79248 commit fd3d31d

File tree

4 files changed

+139
-211
lines changed

4 files changed

+139
-211
lines changed

src/checkbox/CheckboxGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

src/dropdown-menu/DropdownItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)