Skip to content

Commit dd1e12c

Browse files
joyenjoyerbalzss
authored andcommitted
fix(ui-text-area): make focus line follow resized textarea
Closes: INSTUI-4380
1 parent 5f12cf0 commit dd1e12c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ui-text-area/src/TextArea/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ class TextArea extends Component<TextAreaProps> {
117117
if (this._highlightRef) {
118118
const entryStyle = window.getComputedStyle(entry.target)
119119
this._highlightRef.style.transition = 'none'
120-
this._highlightRef.style.width = `calc(${entryStyle.width}px + 2.125rem)`
121-
this._highlightRef.style.height = `calc(${entryStyle.height}px + 2.125rem)`
120+
this._highlightRef.style.width = `calc(${entryStyle.width} + 0.5rem)`
121+
this._highlightRef.style.height = `calc(${entryStyle.height} + 0.5rem)`
122122
clearTimeout(this.resizeTimeout)
123123

124124
this.resizeTimeout = setTimeout(() => {

0 commit comments

Comments
 (0)