Skip to content

Commit 7a990ff

Browse files
authored
fix(textarea): scrollbars are visible with overflow (#26284)
Resolves #26278
1 parent 476e3a5 commit 7a990ff

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

core/src/components/textarea/textarea.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@
124124
resize: none;
125125
appearance: none;
126126

127-
overflow: hidden;
128-
129127
&::placeholder {
130128
@include padding(0);
131129

@@ -168,7 +166,7 @@
168166
opacity: 1;
169167
}
170168

171-
:host([auto-grow]) .cloned-input {
169+
:host([auto-grow="true"]) .cloned-input {
172170
// Workaround for webkit rendering issue with scroll assist.
173171
// When cloning the textarea and scrolling into view,
174172
// a white box is rendered from the difference in height
@@ -191,3 +189,7 @@
191189

192190
opacity: 1;
193191
}
192+
193+
:host([auto-grow="true"]) .native-textarea {
194+
overflow: hidden;
195+
}

0 commit comments

Comments
 (0)