chrisdavies / tiny-date-picker

A small, modern, dependency-free date picker
https://chrisdavies.github.io/tiny-date-picker/
415 stars 88 forks source link

AppendTo does not work. #93

Closed BoshJeckerleg closed 5 years ago

BoshJeckerleg commented 6 years ago

Date picker is always appended to document body.

chrisdavies commented 5 years ago

Seems to work for me. I modified my test/index.html to have the following:

     TinyDatePicker('.non-modal-txt', {
        appendTo: document.querySelector('main'),
        mode: 'dp-below',
      });

When I looked at the resulting date picker, it shows up in main, rather than in the body. What scenario are you seeing where it doesn't work?

tazemahmut commented 5 years ago

appendTo not working.

JurajVajda commented 5 years ago

+1