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

autoCloseWhenOffScreen with Mobile device #62

Open
Paul-Vandell opened this issue Sep 22, 2017 · 0 comments
Open

autoCloseWhenOffScreen with Mobile device #62

Paul-Vandell opened this issue Sep 22, 2017 · 0 comments

Comments

@Paul-Vandell
Copy link

Paul-Vandell commented Sep 22, 2017

I faced an issue when my virtual mobile keyboard cover all the popover. So any solution to add some item in my list. what you can do is (line 558) :

<Popover
          open={this.state.isOpen}
          anchorEl={this.root}
          canAutoPosition={canAutoPosition}
          anchorOrigin={anchorOrigin}
	  targetOrigin={{vertical: 'bottom',horizontal:'left'}} // ==> Or make it on props
          useLayerForClickAway={false}
          onRequestClose={this.closeMenu}
	  autoCloseWhenOffScreen={false} // ===> Or make it on props
          style={popoverStyle || { height: popoverHeight }} // ===> Add a popoverStyle to keep a min height for the popup
        >

Now my popup come from bottom to top and never close when mobile keyboard showing up.
You're superselectfield is really great thx you 👍

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

1 participant