You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, just ran over the same "Problem". I made a wrapper class:
import React from "react";
import TinyDatePicker from 'tiny-date-picker';
// Make sure, we have all the CSS
import 'tiny-date-picker/tiny-date-picker.min.css';
export default class TinyDatePickerReact extends React.Component {
// I use TypeScript so el is any
el:any = null;
componentDidMount() {
// create the Datepicker
this.el = TinyDatePicker(this.el);
// Do something with it
this.el.open();
}
componentWillUnmount() {
// If this compontents gets removed, remove the Datepicker first
this.el.destroy();
}
render() {
// reference an input element
return <input ref={el => this.el = el} />;
}
}
No description provided.
The text was updated successfully, but these errors were encountered: