File tree 2 files changed +8
-4
lines changed
web/core/components/estimates/points
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,10 @@ export const EstimatePointCreate: FC<TEstimatePointCreate> = observer((props) =>
58
58
} ;
59
59
60
60
const handleEstimateInputValue = ( value : string ) => {
61
- setEstimateInputValue ( value ) ;
62
- handleEstimatePointError && handleEstimatePointError ( value , undefined ) ;
61
+ if ( value . length <= MAX_ESTIMATE_POINT_INPUT_LENGTH ) {
62
+ setEstimateInputValue ( value ) ;
63
+ handleEstimatePointError && handleEstimatePointError ( value , undefined ) ;
64
+ }
63
65
} ;
64
66
65
67
const handleCreate = async ( event : FormEvent < HTMLFormElement > ) => {
Original file line number Diff line number Diff line change @@ -63,8 +63,10 @@ export const EstimatePointUpdate: FC<TEstimatePointUpdate> = observer((props) =>
63
63
} ;
64
64
65
65
const handleEstimateInputValue = ( value : string ) => {
66
- handleEstimatePointError && handleEstimatePointError ( value , undefined ) ;
67
- setEstimateInputValue ( ( ) => value ) ;
66
+ if ( value . length <= MAX_ESTIMATE_POINT_INPUT_LENGTH ) {
67
+ setEstimateInputValue ( ( ) => value ) ;
68
+ handleEstimatePointError && handleEstimatePointError ( value , undefined ) ;
69
+ }
68
70
} ;
69
71
70
72
const handleUpdate = async ( event : FormEvent < HTMLFormElement > ) => {
You can’t perform that action at this time.
0 commit comments