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

[Modal] Not scrolling if there are no actions #6797

Open
peterkappelt opened this issue Apr 27, 2019 · 0 comments
Open

[Modal] Not scrolling if there are no actions #6797

peterkappelt opened this issue Apr 27, 2019 · 0 comments

Comments

@peterkappelt
Copy link

Hi everyone,
unsure whether this is a bug (or a usage scenario that isn't recommended), but it at least left me a bit puzzled for a couple of minutes.

I'm using Semantic for React, but I suppose this behaviour is caused by semantic itself (not the wrappers). Howevver, I haven't had a chance to test it with pure semantic yet.

Steps

Create a modal without any Actions:

    render() {
        return (
            <Fragment>
                <Modal
                    open={this.state.modalShown} onClose={this.modalClose} size="large" closeIcon centered={false}>
                    <Modal.Header icon="info" content="User Details" />
                    <Modal.Content>
                        <Modal.Description>
                            <ComponentThatCreatesALotOfText />
                        </Modal.Description>
                    </Modal.Content>
                </Modal>
            </Fragment>
        );
    }

Results

The content of the modal is longer than the window's height, so I expect it to be scrollable. However, it simply isn't.

Workaround

Add an action to the modal. It is scrollable now:

<Modal.Actions>
  <Button primary>
    Proceed <Icon name="chevron right" />
  </Button>
</Modal.Actions>

Version

2.4.2

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