Skip to content

Commit

Permalink
fix(ui-text-area): make focus line follow resized textarea
Browse files Browse the repository at this point in the history
Closes: INSTUI-4380
  • Loading branch information
joyenjoyer authored and balzss committed Dec 3, 2024
1 parent 5f12cf0 commit dd1e12c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui-text-area/src/TextArea/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ class TextArea extends Component<TextAreaProps> {
if (this._highlightRef) {
const entryStyle = window.getComputedStyle(entry.target)
this._highlightRef.style.transition = 'none'
this._highlightRef.style.width = `calc(${entryStyle.width}px + 2.125rem)`
this._highlightRef.style.height = `calc(${entryStyle.height}px + 2.125rem)`
this._highlightRef.style.width = `calc(${entryStyle.width} + 0.5rem)`
this._highlightRef.style.height = `calc(${entryStyle.height} + 0.5rem)`
clearTimeout(this.resizeTimeout)

this.resizeTimeout = setTimeout(() => {
Expand Down

0 comments on commit dd1e12c

Please sign in to comment.