tamble / jquery-ui-daterangepicker

A JQuery UI based date range picker.
MIT License
184 stars 110 forks source link

.button is not a function error on jquery-ui@1.12.0 #66

Closed ghost closed 7 years ago

ghost commented 7 years ago

jquery-ui-daterangepicker breaks with the error

TypeError: $(...).addClass(...).attr(...).button is not a function $self = $('')

This error appears on the latest jquery-ui

op16 commented 7 years ago

Sorry, I can't reproduce your issue.

Maybe you are using a custom jqueryUI download, which doesn't includes all the required widgets (like button), or maybe your are using other JS libraries like bootstrap.js.

However, our widget has known issues with versions of jqueryUI more recent than 1.10.3, which will hopefully be addressed by late September.

ghost commented 7 years ago

I'm using jquery-ui 1.12.0.. it works well in Previous versions.. hope this issue gets addressed in the upcoming version..

richakhurana19 commented 7 years ago

I am facing the same issue while integrating the component with Primefaces which internally bundles jquery-ui-1.11.0. Eagerly awaiting the fix

op16 commented 7 years ago

@richakhurana19 The jquery-ui bundled in Primefaces doesn't include all required widgets, namely button & menu. I suppose they had some serious reason not to include them.

Either way, it's not the jquery-ui version, but the missing plugins which are causing the TypeError: $(...).addClass(...).attr(...).button is not a function.

The known issues I was talking above are all CSS-related.