Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: e.dom is undefined #39

Closed
romanown opened this issue Aug 28, 2018 · 7 comments
Closed

TypeError: e.dom is undefined #39

romanown opened this issue Aug 28, 2018 · 7 comments

Comments

@romanown
Copy link

romanown commented Aug 28, 2018

periodically, when navigating between pages, a white blank field appears instead of the page content and an error occurs
`TypeError: e.dom is undefined Drawer.js:358
k/this.setLevelDomTransform Drawer.js:358
O</t.prototype.componentWillUnmount Drawer.js:106'

default
before using the drawer and after the shutdown, this did not happen

string 358 of the Drawer.js is
_this3.dom.style.transition = 'none';

in my app
<Drawer level = 'null' prefixCls={isMain ? 'mydrawer' : 'drawer'} >

@jljsj33
Copy link
Member

jljsj33 commented Aug 29, 2018

level={null}

@jljsj33 jljsj33 closed this as completed Aug 29, 2018
@romanown
Copy link
Author

romanown commented Aug 29, 2018

without results. also a mistake.
default
even have to remove all the options (<Drawer >) when you click back in the browser an error occurs. sometimes first back then the link click and then an error occurs

@romanown
Copy link
Author

I deleted the Drawer and used the links and back button in the browser the error stopped appearing.

@romanown
Copy link
Author

romanown commented Sep 1, 2018

Will there be a solution to this problem? You closed issue but there is no solution. the settings you specified did not correct the situation.

@jljsj33 jljsj33 reopened this Sep 1, 2018
@jljsj33
Copy link
Member

jljsj33 commented Sep 1, 2018

Can you provide demo?

@romanown
Copy link
Author

romanown commented Sep 2, 2018

I redid the code and removed the drawer. I won't be able to show all the code but I'll try to add up a significant part and lay out. I want to do it privately.

@jljsj33 jljsj33 closed this as completed Sep 3, 2018
@romanown
Copy link
Author

romanown commented Sep 5, 2018

const Nmenu = withRouter(observer(injectSheet({
  menu: {
    marginTop: 5,
    zIndex: 1000,
    justifyContent: 'space-around',
    flexWrap: 'wrap',
	background: '#a1c0be',
	width: '90%',
  textAlign: 'center',
  color: 'white', 	
  },
 })(
  class extends React.Component {
    render() {
		const {classes} = this.props;
    return (
            <div className={classes.menu}>
				 <Drawer level = 'null' 	prefixCls={isMain ? 'mydrawer' : 'drawer'}	 >
		 <Menu
	style={{backgroundColor: '#2e8982cc', textAlign: 'center', color: '#dedede',  paddingLeft: '3px', paddingTop: '0px', width: '100vw', maxWidth: '360px'}}
	mode= 'inline'
	inlineIndent ='0'   >
<MenuItem key='001'>qw</MenuItem>
      <SubMenu title={titlesRight[0]} key="1">...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants