From ec1f01053f20be9b732664689f914cb64aa15e6e Mon Sep 17 00:00:00 2001 From: Dennis Kigen Date: Thu, 27 Apr 2023 01:50:41 -0700 Subject: [PATCH] Review feedback --- src/components/inputs/text/ohri-text.component.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/inputs/text/ohri-text.component.tsx b/src/components/inputs/text/ohri-text.component.tsx index 348b6dab1..9219e01d7 100644 --- a/src/components/inputs/text/ohri-text.component.tsx +++ b/src/components/inputs/text/ohri-text.component.tsx @@ -90,6 +90,8 @@ const OHRIText: React.FC = ({ question, onChange, handler }) invalidText={errors.length && errors[0].message} warn={warnings.length > 0} warnText={warnings.length && warnings[0].message} + onInvalid={e => e.preventDefault()} + maxLength={question.questionOptions.max || TextInput.maxLength} /> {previousValueForReview && (