Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18734669
D8497.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D8497.id.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -8,7 +8,7 @@
'names' =>
array(
'core.pkg.css' => 'c650ab0d',
- 'core.pkg.js' => 'b7bdab05',
+ 'core.pkg.js' => '264721e1',
'darkconsole.pkg.js' => 'ca8671ce',
'differential.pkg.css' => 'd1b3a605',
'differential.pkg.js' => '11a5b750',
@@ -474,7 +474,7 @@
'rsrc/js/core/behavior-select-on-click.js' => '0e34ca02',
'rsrc/js/core/behavior-toggle-class.js' => 'a82a7769',
'rsrc/js/core/behavior-tokenizer.js' => 'b3a4b884',
- 'rsrc/js/core/behavior-tooltip.js' => 'e5dd1c6d',
+ 'rsrc/js/core/behavior-tooltip.js' => '48db4145',
'rsrc/js/core/behavior-watch-anchor.js' => '06e05112',
'rsrc/js/core/behavior-workflow.js' => '82947dda',
'rsrc/js/core/phtize.js' => 'd254d646',
@@ -602,7 +602,7 @@
'javelin-behavior-phabricator-reveal-content' => '8f24abfc',
'javelin-behavior-phabricator-search-typeahead' => 'f6b56f7a',
'javelin-behavior-phabricator-show-all-transactions' => '7c273581',
- 'javelin-behavior-phabricator-tooltips' => 'e5dd1c6d',
+ 'javelin-behavior-phabricator-tooltips' => '48db4145',
'javelin-behavior-phabricator-transaction-comment-form' => '9084a36f',
'javelin-behavior-phabricator-transaction-list' => '3c918aa8',
'javelin-behavior-phabricator-watch-anchor' => '06e05112',
@@ -1116,6 +1116,13 @@
4 => 'javelin-util',
5 => 'phabricator-prefab',
),
+ '48db4145' =>
+ array(
+ 0 => 'javelin-behavior',
+ 1 => 'javelin-behavior-device',
+ 2 => 'javelin-stratcom',
+ 3 => 'phabricator-tooltip',
+ ),
'493665ee' =>
array(
0 => 'javelin-install',
@@ -1229,6 +1236,11 @@
2 => 'javelin-util',
3 => 'phabricator-shaped-request',
),
+ '7319e029' =>
+ array(
+ 0 => 'javelin-behavior',
+ 1 => 'javelin-dom',
+ ),
'62e18640' =>
array(
0 => 'javelin-install',
@@ -1264,11 +1276,6 @@
1 => 'javelin-stratcom',
2 => 'javelin-dom',
),
- '7319e029' =>
- array(
- 0 => 'javelin-behavior',
- 1 => 'javelin-dom',
- ),
'75903ee1' =>
array(
0 => 'javelin-behavior',
@@ -1836,13 +1843,6 @@
2 => 'javelin-view-visitor',
3 => 'javelin-util',
),
- 'e5dd1c6d' =>
- array(
- 0 => 'javelin-behavior',
- 1 => 'javelin-behavior-device',
- 2 => 'javelin-stratcom',
- 3 => 'phabricator-tooltip',
- ),
'e7c21fb3' =>
array(
0 => 'javelin-dom',
diff --git a/webroot/rsrc/js/core/behavior-tooltip.js b/webroot/rsrc/js/core/behavior-tooltip.js
--- a/webroot/rsrc/js/core/behavior-tooltip.js
+++ b/webroot/rsrc/js/core/behavior-tooltip.js
@@ -31,14 +31,18 @@
data.tip);
});
+ function wipe(e) {
+ JX.Tooltip.hide();
+ }
+
+ // Hide tips when any key is pressed. This prevents tips from ending up locked
+ // on screen if you make a keypress which removes the underlying node (for
+ // example, submitting an inline comment in Differential). See T4586.
+ JX.Stratcom.listen('keydown', null, wipe);
+
// When we leave the page, hide any visible tooltips. If we don't do this,
// clicking a link with a tooltip and then hitting "back" will give you a
// phantom tooltip.
- JX.Stratcom.listen(
- 'unload',
- null,
- function(e) {
- JX.Tooltip.hide();
- });
+ JX.Stratcom.listen('unload', null, wipe);
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 1, 10:59 PM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8480784
Default Alt Text
D8497.id.diff (3 KB)
Attached To
Mode
D8497: Hide tooltips on any keypress
Attached
Detach File
Event Timeline
Log In to Comment