Skip to content

Commit

Permalink
fix: lose focus when input in route step1 (apache#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiteSun authored Oct 21, 2020
1 parent eebaec0 commit d31a7e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/Route/components/Step1/RequestConfigView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ const RequestConfigView: React.FC<RouteModule.Step1PassProps> = ({
<Form.Item
noStyle
shouldUpdate={(prev, next) => {
onChange({ action: 'redirectOptionChange', data: next.redirectOption });
if (prev.redirectOption !== next.redirectOption) {
onChange({ action: 'redirectOptionChange', data: next.redirectOption });
}
return prev.redirectOption !== next.redirectOption;
}}
>
Expand Down

0 comments on commit d31a7e6

Please sign in to comment.