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

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

wants to merge 1 commit into from

Conversation

mrkev
Copy link
Contributor

@mrkev mrkev commented May 7, 2020

All info is in the #2413 and this Bugzilla issue.

Noteworthy from that Bugzilla thread is comment 16:

I added a selectionchange listener to the document of Twitter, and I tried reproducing this with the STR in comment 10. Then, I confirmed that selectionchange event is fired as expected both on Firefox (Nightly) and Chrome (Release) when I click middle of the text node. So, it might be a bug of React if the onSelect is not called as expected...

This is worth future investigation, but for now let's just fix the bug.

EDIT: Kept reading down the thread, and comment 21 seems to imply this is in fact not a bug in React. Still worth investigating at some point in the future.

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrkev has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link

@mrkev merged this pull request in 6d619c6.

@mrkev mrkev deleted the fix/firefox-selection-issue branch May 9, 2020 00:02
vilemj-Viclick pushed a commit to kontent-ai/draft-js that referenced this pull request Jul 16, 2020
…our as Chrome (facebookarchive#2414)

Summary:
All info is in the facebookarchive#2413 and this [Bugzilla issue](https://bugzilla.mozilla.org/show_bug.cgi?id=1625475).

Noteworthy from that Bugzilla thread is [comment 16](https://bugzilla.mozilla.org/show_bug.cgi?id=1625475#c16):

> I added a selectionchange listener to the document of Twitter, and I tried reproducing this with the STR in comment 10. Then, I confirmed that selectionchange event is fired as expected both on Firefox (Nightly) and Chrome (Release) when I click middle of the text node. So, **it might be a bug of React if the onSelect is not called as expected...**

This is worth future investigation, but for now let's just fix the bug.
Pull Request resolved: facebookarchive#2414

Reviewed By: kedromelon

Differential Revision: D21443875

Pulled By: mrkev

fbshipit-source-id: 8bd099ddc44e3c4cdac679e1d605c4da5146c1e8
alicayan008 pushed a commit to alicayan008/draft-js that referenced this pull request Jul 4, 2023
…#2414)

Summary:
All info is in the facebookarchive/draft-js#2413 and this [Bugzilla issue](https://bugzilla.mozilla.org/show_bug.cgi?id=1625475).

Noteworthy from that Bugzilla thread is [comment 16](https://bugzilla.mozilla.org/show_bug.cgi?id=1625475#c16):

> I added a selectionchange listener to the document of Twitter, and I tried reproducing this with the STR in comment 10. Then, I confirmed that selectionchange event is fired as expected both on Firefox (Nightly) and Chrome (Release) when I click middle of the text node. So, **it might be a bug of React if the onSelect is not called as expected...**

This is worth future investigation, but for now let's just fix the bug.
Pull Request resolved: facebookarchive/draft-js#2414

Reviewed By: kedromelon

Differential Revision: D21443875

Pulled By: mrkev

fbshipit-source-id: 8bd099ddc44e3c4cdac679e1d605c4da5146c1e8
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants