Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hsource
Copy link

@hsource hsource commented Feb 17, 2023

Motivation

We are trying to use the date-picker in a small position: fixed container with overflow: hidden. To make it escape its container using a portal, we use appendToBody={true}

This mostly works, but because the container is appended to the body in a static layout, the date picker becomes invisible once we scroll down the page.

Fix

  1. Add appendToBody="fixed" as an additional option, in addition to the normal booleans. Update all PropTypes

Testing

Added new automated Mocha tests that verify that position: 'fixed' gets added when appendToBody="fixed" is set

@hsource hsource closed this Feb 17, 2023
@hsource hsource reopened this Feb 17, 2023
@hsource hsource closed this Feb 17, 2023
@ljharb
Copy link
Member

ljharb commented Feb 17, 2023

Duplicate of #2229.

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

Successfully merging this pull request may close these issues.

2 participants