diff --git a/apps/OpenSign/src/components/pdf/PlaceholderType.js b/apps/OpenSign/src/components/pdf/PlaceholderType.js index 03e79efb6..d61c8bbca 100644 --- a/apps/OpenSign/src/components/pdf/PlaceholderType.js +++ b/apps/OpenSign/src/components/pdf/PlaceholderType.js @@ -3,6 +3,7 @@ import { getMonth, getYear, isMobile, + onChangeHeightOfTextArea, onChangeInput, radioButtonWidget, range, @@ -285,6 +286,22 @@ function PlaceholderType(props) { }; props.handleSaveDate(dateObj, isDateChange); }; + //handle height on enter press in text area + const handleEnterPress = (e) => { + const height = 15; + if (e.key === "Enter") { + //function to save height of text area + onChangeHeightOfTextArea( + height, + props.pos.type, + props.pos.key, + props.xyPostion, + props.index, + props.setXyPostion, + props.data && props.data?.Id + ); + } + }; switch (type) { case "signature": return props.pos.SignUrl ? ( @@ -741,6 +758,7 @@ function PlaceholderType(props) {