chrisdavies / tiny-date-picker

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

How to use it in bootstrap-vue modal? #114

Open zachross25 opened 4 years ago

zachross25 commented 4 years ago

It just not displayed completely

zachross25 commented 4 years ago

solution:

            this.$root.$on('bv::modal::shown', (bvEvent, modalId) => {
                console.log('Modal is about to be shown', bvEvent, modalId);
                TinyDatePicker(this.$refs.<element_ref_name>, {
                    mode: 'dp-permanent',
                });
            });