Merge pull request #3715 from matrix-org/t3chguy/fix_roomlist_context_menu_regression

Fix remaining context menu regressions
This commit is contained in:
Michael Telatynski 2019-12-11 09:36:45 +00:00 committed by GitHub
commit cb50f5ff5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 69 additions and 45 deletions

View file

@ -280,7 +280,7 @@ module.exports = createReactClass({
const buttonRect = e.target.getBoundingClientRect();
const GenericTextContextMenu = sdk.getComponent('context_menus.GenericTextContextMenu');
const {close} = ContextMenu.createMenu(GenericTextContextMenu, {
...toRightOf(buttonRect, 11),
...toRightOf(buttonRect, 2),
message: successful ? _t('Copied!') : _t('Failed to copy'),
});
e.target.onmouseleave = close;