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

fix(lint): removes unnecessary Boolean cast #2290

Closed
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion meta/bundle-size-stats/Draft.js.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion meta/bundle-size-stats/Draft.min.js.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/component/handlers/edit/editOnBlur.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function editOnBlur(editor: DraftEditor, e: SyntheticEvent<HTMLElement>): void {
// opposed to clicking to another tab or window).
const {ownerDocument} = e.currentTarget;
if (
!Boolean(editor.props.preserveSelectionOnBlur) &&
!editor.props.preserveSelectionOnBlur &&
getActiveElement(ownerDocument) === ownerDocument.body
) {
const selection = ownerDocument.defaultView.getSelection();
Expand Down