Skip to content

Instantly share code, notes, and snippets.

@csavoronin csavoronin/24865_3.diff Secret
Last active Oct 23, 2019

Embed
What would you like to do?
[!] Design: Responsive: Menu: On iOS 13, the second level menu did not work. Fixed. [!] Design: Responsive: Menu: On iOS, with a long tap on the menu link, the context menu did not work. Fixed.
diff --git a/design/themes/responsive/css/styles.less b/design/themes/responsive/css/styles.less
index c35f167162..e8aa313f19 100644
--- a/design/themes/responsive/css/styles.less
+++ b/design/themes/responsive/css/styles.less
@@ -22,7 +22,7 @@
Base styles
========================================================================== */
-.ty-menu__items, .cm-dialog-opener {
+.cm-dialog-opener {
-webkit-touch-callout:none; /* disable context menu when tapping an holding a link*/
}
* {
diff --git a/js/tygh/responsive.js b/js/tygh/responsive.js
index 8336fe195e..6079151cdc 100644
--- a/js/tygh/responsive.js
+++ b/js/tygh/responsive.js
@@ -196,12 +196,11 @@
* @param {jQueryHTMLElement} $submenu
*/
function _getSubmenuOriginWidth ($submenu) {
- $submenu.css({ visibility: 'hidden', left: 0 });
+ $submenu.css('left', 0);
var _width = $submenu.outerWidth() || 0;
- // remove inline styles perfectly
- $submenu.get(0).style.left = '';
- $submenu.get(0).style.visibility = '';
+ // remove inline style perfectly
+ $submenu.get(0).style.left = '';
return _width;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.