Skip to content

Commit

Permalink
🐛 fix(custom): 修复搜索栏自动填充问题
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #39
  • Loading branch information
master1lan committed Mar 5, 2023
1 parent 404a588 commit 363fe7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/routers/layout/search/pc/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ const NormalSearch = () => {
handlerNavigate(value);
},
handerHistorySubmit = (value: string) => {
inputRef.current!.value = value;
handlerNavigate(value);
addPCTagHistory(value);
};
Expand Down Expand Up @@ -152,10 +153,12 @@ const AdvanceSearch = forwardRef(function Advance(props, ref) {
onBlur();
},
handlerTagHistorySubmit = (tag: string) => {
tagRef.current!.value = tag;
handlerNavigate(tag, getNameValue());
addPCTagHistory(tag);
},
handlerNameHistorySubmit = (name: string) => {
nameRef.current!.value = name;
handlerNavigate(getTagValue(), name);
addPCNameHistory(name);
};
Expand Down

0 comments on commit 363fe7f

Please sign in to comment.