reagent-project / reagent-forms

Bootstrap form components for Reagent
339 stars 78 forks source link

Datepicker dropdown container #156

Closed pepa-linha closed 2 years ago

pepa-linha commented 2 years ago

Is it possible change dropdown DOM element parent? I would like to place a dropdown (element <div class="datepicker dp-dropdown">) in a document body (<body>), for example, because my dropdown parent has overflow: auto which causes a cut the dropdown element. Thanks.

yogthos commented 2 years ago

There isn't any easy way to do this, but you could potentially do this using component-did-mount lifecycle method where you'd have access to the actual mounted DOM that you can manipulate.

pepa-linha commented 2 years ago

Ok, thanks so much for 🚀 answer.