Skip to content

Commit

Permalink
Disable fit-textareas in Safari (#4447)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Jun 8, 2021
1 parent 161981f commit 5a9449c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/features/fit-textareas.tsx
Expand Up @@ -5,6 +5,7 @@ import fitTextarea from 'fit-textarea';
import * as pageDetect from 'github-url-detection';

import features from '.';
import isSafari from '../helpers/browser-detection';
import onPrMergePanelOpen from '../github-events/on-pr-merge-panel-open';

function inputListener({target}: Event): void {
Expand Down Expand Up @@ -40,11 +41,17 @@ void features.add(__filebasename, {
include: [
pageDetect.hasRichTextEditor
],
exclude: [
isSafari
],
init
}, {
include: [
pageDetect.isPRConversation
],
exclude: [
isSafari
],
init() {
onPrMergePanelOpen(fitPrCommitMessageBox);
}
Expand Down

0 comments on commit 5a9449c

Please sign in to comment.