Bug 253803 - on contentEditable,onMouseUp trigger before onMouseDown.
Summary: on contentEditable,onMouseUp trigger before onMouseDown.
Status: RESOLVED DUPLICATE of bug 219670
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: WebKit Nightly Build
Hardware: Mac (Apple Silicon) macOS 13
: P2 Major
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-03-12 19:06 PDT by sunus
Modified: 2023-11-28 08:23 PST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sunus 2023-03-12 19:06:14 PDT
Mac OS (Big Sur) to Ventura still Reproduce.

Steps To Reproduce:

set div contentEditable
div addEventListener onMouseUp and onMouseDown
onMouseUp trigger before onMouseDown
Link to code example:

<div
  onMouseDown={() => {console.log('mouse down')}}
  onMouseUp={() => {console.log('mouse up')}}
  suppressContentEditableWarning
  contentEditable>
  Test ContentEditable In Safari
</div>

see detail in this comment:
https://github.com/facebook/react/issues/20787#issuecomment-1279942233
Comment 2 Sam Sneddon [:gsnedders] 2023-03-13 07:07:18 PDT
From the React issue:

> I suspect that this is related to the third-party IME. When switching to a third-party IME (such as Sogou, Baidu IME), this problem sometimes occurs.
Comment 3 sunus 2023-03-14 00:33:05 PDT
(In reply to Sam Sneddon [:gsnedders] from comment #2)
> From the React issue:
> 
> > I suspect that this is related to the third-party IME. When switching to a third-party IME (such as Sogou, Baidu IME), this problem sometimes occurs.

i am not very sure, we also test some other thir-party IME besides(Sogou, Baidu), this still happening. and it's ok in Chrome.
Comment 4 Radar WebKit Bug Importer 2023-03-19 19:07:15 PDT
<rdar://problem/106923953>
Comment 5 sunus 2023-04-13 02:43:51 PDT
and updates?
Comment 6 alex_pan 2023-04-18 23:43:02 PDT
we have same problem since 2021/03, any updates?
Comment 7 sunus 2023-08-28 02:34:47 PDT
any updates?
Comment 8 Alexey Proskuryakov 2023-11-28 08:23:23 PST

*** This bug has been marked as a duplicate of bug 219670 ***