| Summary: | on contentEditable,onMouseUp trigger before onMouseDown. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | sunus <sunuslee> |
| Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Major | CC: | ap, joone, karlcow, panyaoheng, sunuslee, webkit-bug-importer, wenson_hsieh |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Mac (Apple Silicon) | ||
| OS: | macOS 13 | ||
you can test with 3rd IME: https://ime.sogouimecdn.com/202303131007/25a473fc3c1e842b12969744bfc7ca75/dl/gzindex/1678360775/sogou_mac_guanwang_614b.zip 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.
(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. and updates? we have same problem since 2021/03, any updates? any updates? *** This bug has been marked as a duplicate of bug 219670 *** |
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