Skip to content

Commit 34da2bb

Browse files
committed
对比defaultValue
1 parent f10caeb commit 34da2bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/options/routes/ScriptList/components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export const ScriptSearchField = React.memo(
227227
);
228228
},
229229
(prevProps, nextProps) => {
230-
return prevProps.t === nextProps.t;
230+
return prevProps.t === nextProps.t && prevProps.defaultValue === nextProps.defaultValue;
231231
}
232232
);
233233
ScriptSearchField.displayName = "ScriptSearchField";

0 commit comments

Comments
 (0)