rome icon indicating copy to clipboard operation
rome copied to clipboard

.destroy().restore() and .options() methods don't work on inline calendar

Open jordangarside opened this issue 9 years ago • 4 comments

When I do an inline calendar, with either default or custom options, both the options method and the destroy then restore methods result in an empty rd-container.

jordangarside avatar Aug 17 '15 04:08 jordangarside

It works in v2.1.3, but broken from 2.1.4

I think reason there: https://github.com/bevacqua/rome/commit/78686fd3de8d50a8f3d1ce1600338a02249c9847

andrey-hohlov avatar Oct 08 '15 12:10 andrey-hohlov

Just bumped into this issue. Interesting that it hasn't been addressed in all these releases.

oskarkrawczyk avatar Feb 25 '16 21:02 oskarkrawczyk

Still an issue in 2.1.22 .. tried reverting some of the changes in specific to the inline calendar #https://github.com/bevacqua/rome/commit/78686fd3de8d50a8f3d1ce1600338a02249c9847 but made no difference to the issue :(

paddy01 avatar Jan 12 '18 09:01 paddy01

We ran into this issue as well. We were able to get around it by specifying the appendTo option and chaining show():

var element = document.getElementById('myContainer'),
    picker = rome(element);

picker.options({ appendTo: element }).show();

jmirmina avatar Mar 07 '19 20:03 jmirmina