Firefox: fix disappearing toolbar#25554
Conversation
|
Size Change: -8 B (0%) Total Size: 1.17 MB
ℹ️ View Unchanged
|
aristath
left a comment
There was a problem hiding this comment.
LGTM. Tested on Ubuntu using Firefox, it now works as expected 👍
ZebulanStanphill
left a comment
There was a problem hiding this comment.
Thanks for getting on this so quickly, @ellatrix! And thanks for spotting and reporting, @talldan and @aristath.
Tested on KDE Neon with Firefox 80.0.1. Also tested on Chromium to make sure it's still working there. Everything seems to be working correctly again!
There's a failing test in the Static Analysis GitHub action:
[1] /home/runner/work/gutenberg/gutenberg/packages/block-library/src/navigation/index.js
[1] 24:18 error Replace `·'A·collection·of·blocks·that·allow·visitors·to·get·around·your·site.'·` with `⏎↹↹'A·collection·of·blocks·that·allow·visitors·to·get·around·your·site.'⏎↹` prettier/prettier
However, it's just a formatting issue that is totally unrelated to this PR. So we should merge this as soon as it lets us.
|
(I think it just needs a rebase.) |
7503cd7 to
fda9eb0
Compare
| function onMouseLeave( { buttons } ) { | ||
| // The primary button must be pressed to initiate selection. | ||
| // See https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons | ||
| // See https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which |
There was a problem hiding this comment.
I think this link can be removed since it's no longer relevant.
The link is no longer relevant after #25554.
The link is no longer relevant after #25554.
Description
Fixes #25526.
The cause of this bug is the switch from a React synthetic event to a native event. It seems that the
buttonsproperty didn't work correctly in the past for Firefox, but it works correctly for the native event.How has this been tested?
Screenshots
Types of changes
Checklist: