phoenixwong / vue2-timepicker

A dropdown time picker (hour|minute|second) for Vue 2.x, with flexible time format support
https://phoenixwong.github.io/vue2-timepicker/
MIT License
432 stars 193 forks source link

Feature Request: append-to-body #133

Closed iomariani closed 3 years ago

iomariani commented 4 years ago

Sometimes the component is wrapped into an container with overflow: hidden;

image

That causes the dropdown list to be hidden on the container... A append-to-body prop that would instead append the list to the body would be nice!

Similar to what vueSelect has https://vue-select.org/api/props.html#appendtobody, along with a function to calculate where the position will be as well...

phoenixwong commented 4 years ago

Thanks for the suggestion, @iomariani!

In the meantime, please give the brand new drop-direction feature a try -- It's release in the latest v1.1.5. With this new feature, you can set make dropdown open above the input if needed.

iomariani commented 4 years ago

@phoenixwong it definitely does help in my case as well. Thank you!

phoenixwong commented 3 years ago

Feature released in v1.1.6.

Please be note that you may need to modify some CSS selector names if you have customized styles for the dropdown picker. E.g., a custom background color.

Please check the documentation here for more information.