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

Fix #1326 Safari can't focus with draggable parent #1356

Closed
wants to merge 6 commits into from
Closed
Changes from 4 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
3 changes: 3 additions & 0 deletions src/component/base/DraftEditor.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ class DraftEditor extends React.Component<DraftEditorProps, State> {

const contentStyle = {
outline: 'none',
// fix parent-draggable Safari bug. #1326
userSelect: 'text',
WebkitUserSelect: 'text',
whiteSpace: 'pre-wrap',
wordWrap: 'break-word',
};
Expand Down