Skip to content

Commit

Permalink
Merge pull request #252 from eficode/feature/fix-estimation-propagation
Browse files Browse the repository at this point in the history
fix(app-board): update estimation label
  • Loading branch information
Alb93 authored Mar 1, 2021
2 parents 694fd63 + 2380679 commit cb90e9b
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ const EstimationEditor: React.FC<Props> = ({
);

useEffect(() => {
inputRef?.current?.focus();
}, []);
setEstimation(initialEstimation || '');
}, [initialEstimation]);

useEffect(() => {
if (state === 'open') {
inputRef?.current?.focus();
}
}, [state]);

return (
<EstimationWrapper state={state} moving={moving} chars={estimation ? estimation.length : 0}>
Expand Down

0 comments on commit cb90e9b

Please sign in to comment.