Skip to content

Commit

Permalink
fix: make textarea resize according to parent
Browse files Browse the repository at this point in the history
Also, remove autofocus to improve UX since the item selector is still
open after adding a text box item.
  • Loading branch information
edoardo committed Jul 11, 2023
1 parent 1ad4ad7 commit 2405bac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Item/TextItem/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ const TextItem = (props) => {
<div className="dashboard-item-content">
<RichTextEditor
onChange={onChangeText}
inputHeight={27}
inputPlaceholder={i18n.t('Add text here')}
value={text}
initialFocus={false}
resizable={false}
/>
</div>
</>
Expand Down

0 comments on commit 2405bac

Please sign in to comment.