Skip to content

Commit e3d5ca3

Browse files
committed
Circumventing autofill by using a textarea rather than an input type=text
1 parent 1fb5356 commit e3d5ca3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/skins/vector/css/matrix-react-sdk/views/dialogs/ChatInviteDialog.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
/* Using a textarea for this element, to circumvent autofill */
1718
.mx_ChatInviteDialog_input,
1819
.mx_ChatInviteDialog_input:focus {
1920
line-height: 34px;
@@ -22,6 +23,13 @@ limitations under the License.
2223
padding-right: 12px;
2324
margin: 0 !important;
2425
border: 0 !important;
26+
outline: 0 !important;
27+
width: 1000%; /* Pretend that this is an "input type=text" */
28+
resize: none;
29+
overflow: hidden;
30+
vertical-align: middle;
31+
box-sizing: border-box;
32+
word-wrap: nowrap;
2533
}
2634

2735
.mx_ChatInviteDialog_inputContainer {
@@ -31,6 +39,7 @@ limitations under the License.
3139
padding-left: 4px;
3240
padding-right: 4px;
3341
padding-top: 2px;
42+
overflow: hidden;
3443
}
3544

3645
.mx_ChatInviteDialog_queryList {

0 commit comments

Comments
 (0)