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

Commit a6317e6

Browse files
flarniefacebook-github-bot
authored andcommitted
Widen logging and add stack trace for IE selection bug
Summary: We are hoping to remove this flag that was meant to fix an IE selection bug. It blocks selection events from being handled while React is rendering - the thing is, this has never been a problem that we can see. We are logging to see if real users actually hit this bug and if the flag prevents a bad state in that case. If we find that the flag is never hit, then it will soon be removed, unlocking removal of a deprecated lifecycle method. Reviewed By: sophiebits Differential Revision: D6971850 fbshipit-source-id: 8874b21161de3b3f0f568baca2a8c0278b01fa54
1 parent e65a8e6 commit a6317e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/component/handlers/edit/editOnSelect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function editOnSelect(editor: DraftEditor): void {
3333
DraftJsDebugLogging.logBlockedSelectionEvent({
3434
// For now I don't think we need any other info
3535
anonymizedDom: 'N/A',
36-
extraParams: '',
36+
extraParams: JSON.stringify({stacktrace: new Error().stack}),
3737
selectionState: JSON.stringify(selectionState.toJS()),
3838
});
3939
}

0 commit comments

Comments
 (0)