menu icon indicating copy to clipboard operation
menu copied to clipboard

Google doesn't see it and not indexing.

Open romanown opened this issue 7 years ago • 8 comments

Google doesn't see it. after I start using this component, almost all pages are removed from the Google cache. I have "react": "^16.2.0", "react-dom": "^16.2.0", "react-router": "^4.2.0", "react-router-dom": "^4.2.2",

romanown avatar Aug 30 '18 01:08 romanown

Are you sure? I was planning to use antd, which seems to refer to this component.

Jaikant avatar Aug 31 '18 15:08 Jaikant

If i see the page source - no items of menu. have only submenu. You can see it. <li class="rc-menu-submenu rc-menu-submenu-horizontal" role="menuitem"><div class="rc-menu-submenu-title" aria-expanded="false" aria-haspopup="true">COLOR<i class="rc-menu-submenu-arrow"></i></div></li>

romanown avatar Aug 31 '18 15:08 romanown

Please see https://github.com/ant-design/ant-design/issues/5586

yesmeck avatar Aug 31 '18 15:08 yesmeck

forceSubMenuRender = {true} or forceSubMenuRender = 'true' do not helped me

romanown avatar Aug 31 '18 16:08 romanown

With getPopupContainer https://codesandbox.io/s/748w1073pj

yesmeck avatar Aug 31 '18 16:08 yesmeck

Thanks. for a horizontal menu, this works. but the vertical menu for mobile that is hidden and shown only when you click on the button has no items. but if you do the same for html and CSS are displayed items.

romanown avatar Aug 31 '18 17:08 romanown

in the code inspector there is default

and in the source code of the data page is still not. <li class="rc-menu-submenu rc-menu-submenu-horizontal" role="menuitem"><div class="rc-menu-submenu-title" aria-expanded="false" aria-haspopup="true">All<i class="rc-menu-submenu-arrow"></i></div></li></ul></div></div></div> code render() { return ( <div className={classes.menu}> <Menu /* mode={document.body.clientWidth > 500 ? 'horizontal' : 'vertical'} triggerSubMenuAction={document.body.clientWidth > 500 ? 'hover' : 'click'} */ forceSubMenuRender getPopupContainer={(parent) => parent} style={{backgroundColor: '#2e8982cc', textAlign: 'center', color: '#dedede', paddingLeft: '3px', paddingTop: '0px', width: '100vw', maxWidth: '360px'}} mode= 'horizontal' inlineIndent ='0' > <SubMenu title={titlesRight[0]} key="1">.... I have the server side rendering. may by it is not works?

romanown avatar Sep 05 '18 12:09 romanown

perhaps this situation occurs because the menu module is displayed in ModalPortal?

romanown avatar Sep 12 '18 07:09 romanown