Skip to content

Commit

Permalink
fix: pass textarea height to RichTextEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Oct 25, 2023
1 parent f80a7bb commit b764735
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/components/Item/TextItem/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,11 @@ const TextItem = (props) => {
<Divider margin={`0 0 ${spacers.dp4} 0`} />
<div className="dashboard-item-content">
<RichTextEditor
onEdit={(event) => onChangeText(event.target.value)}
>
<TextArea
rows={30}
value={text}
placeholder={i18n.t('Add text here')}
onChange={({ value }) => onChangeText(value)}
/>
</RichTextEditor>
onChange={onChangeText}
inputHeight={27}
inputPlaceholder={i18n.t('Add text here')}
value={text}
/>
</div>
</>
)
Expand Down

0 comments on commit b764735

Please sign in to comment.