Skip to content

Commit

Permalink
feat: 移除永远不会执行的代码
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyair committed Dec 27, 2023
1 parent 04004ba commit d7be3e8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@ const InternalSegmented: React.ForwardRefRenderFunction<
event: React.ChangeEvent<HTMLInputElement>,
val: any,
) => {
if (disabled) {
return;
}

setRawValue(val);

onChange?.(val);
Expand Down

0 comments on commit d7be3e8

Please sign in to comment.