Skip to content

Commit

Permalink
refactor(timepicker): remove modal
Browse files Browse the repository at this point in the history
  • Loading branch information
wuda-io committed Dec 17, 2024
1 parent 0b2c314 commit f06ef3c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/timepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ type Point = {
export class Timepicker extends Component<TimepickerOptions> {
declare el: HTMLInputElement;
id: string;
//modal: Modal;
modalEl: HTMLElement;
plate: any;
digitalClock: any;
Expand Down Expand Up @@ -147,12 +146,10 @@ export class Timepicker extends Component<TimepickerOptions> {
constructor(el: HTMLInputElement, options: Partial<TimepickerOptions>) {
super(el, options, Timepicker);
(this.el as any).M_Timepicker = this;

this.options = {
...Timepicker.defaults,
...options
};

this.id = Utils.guid();
this._insertHTMLIntoDOM();
this._setupVariables();
Expand Down Expand Up @@ -218,7 +215,6 @@ export class Timepicker extends Component<TimepickerOptions> {

destroy() {
this._removeEventHandlers();
//this.modal.destroy();
this.modalEl.remove();
(this.el as any).M_Timepicker = undefined;
}
Expand Down

0 comments on commit f06ef3c

Please sign in to comment.