fix(textarea): firefox bug with disabled textarea drag
This commit is contained in:
parent
eb61cbfed2
commit
5f3ef98ae9
2 changed files with 10 additions and 0 deletions
5
.changeset/swift-cups-tease.md
Normal file
5
.changeset/swift-cups-tease.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@lion/textarea': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Temporary fix for a bug in FireFox where disabled textareas can crash the browser if dragged (resized).
|
||||||
|
|
@ -157,6 +157,11 @@ export class LionTextarea extends NativeTextFieldMixin(LionFieldWithTextArea) {
|
||||||
.input-group__container > .input-group__input ::slotted(.form-control) {
|
.input-group__container > .input-group__input ::slotted(.form-control) {
|
||||||
overflow-x: hidden; /* for FF adds height to the TextArea to reserve place for scroll-bars */
|
overflow-x: hidden; /* for FF adds height to the TextArea to reserve place for scroll-bars */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Workaround https://bugzilla.mozilla.org/show_bug.cgi?id=1739079 */
|
||||||
|
:host([disabled]) ::slotted(textarea) {
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue