diff --git a/.changeset/swift-cups-tease.md b/.changeset/swift-cups-tease.md new file mode 100644 index 000000000..17521461b --- /dev/null +++ b/.changeset/swift-cups-tease.md @@ -0,0 +1,5 @@ +--- +'@lion/textarea': patch +--- + +Temporary fix for a bug in FireFox where disabled textareas can crash the browser if dragged (resized). diff --git a/packages/textarea/src/LionTextarea.js b/packages/textarea/src/LionTextarea.js index bf8b8ac4f..f2e681b7e 100644 --- a/packages/textarea/src/LionTextarea.js +++ b/packages/textarea/src/LionTextarea.js @@ -157,6 +157,11 @@ export class LionTextarea extends NativeTextFieldMixin(LionFieldWithTextArea) { .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 */ } + + /* Workaround https://bugzilla.mozilla.org/show_bug.cgi?id=1739079 */ + :host([disabled]) ::slotted(textarea) { + user-select: none; + } `, ]; }