Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Address #2413 by making Firefox follow the same behaviour as Chrome #2414

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/component/handlers/edit/DraftEditorEditHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ const onPaste = require('editOnPaste');
const onSelect = require('editOnSelect');

const isChrome = UserAgent.isBrowser('Chrome');
const isFirefox = UserAgent.isBrowser('Firefox');

const selectionHandler: (e: DraftEditor) => void = isChrome
? onSelect
: e => {};
const selectionHandler: (e: DraftEditor) => void =
isChrome || isFirefox ? onSelect : e => {};

const DraftEditorEditHandler = {
onBeforeInput,
Expand Down