freenowtech / wave

Design System of FREE NOW
https://wave.free-now.com
Apache License 2.0
64 stars 22 forks source link

Datepicker appears underneath Modal #421

Closed martimalek closed 4 months ago

martimalek commented 4 months ago

Relevant code

Datepicker appears underneath the Modal when adding it inside it

Code taken from DatepickerOnModal story

<>
    <Button size="small" onClick={() => setShowModal(true)}>
        Open Modal with Datepicker
    </Button>
    {showModal && (
        <Modal dismissible={false} onClose={() => setShowModal(false)}>
            {dismiss => (
                <>
                    <Headline as="h2">New Event</Headline>

                    <DatePicker value={value} onChange={setValue} />

                    <br />
                    <Button onClick={dismiss}>Add Event</Button>
                    <TextButton onClick={dismiss}>Cancel</TextButton>
                </>
            )}
        </Modal>
    )}
</>

Screenshot of the above code in our docs

image

What was expected to happen?

Datepicker should appear above the Modal, not underneath it

Reproduction

Check the issue in our docs site

github-actions[bot] commented 4 months ago

:tada: This issue has been resolved in version 2.1.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: