fix 0.2.71

This commit is contained in:
MaxOvs19
2023-04-04 17:33:14 +03:00
parent 197a5f25c8
commit 570c7f5512
8 changed files with 18 additions and 12 deletions

View File

@ -130,10 +130,14 @@ export class CGSelect implements ICgSelect {
* }
*/
constructor(setting: ICgSelect) {
this.init(setting);
this.render();
this.closeSelectClick();
this.initEvent();
if (setting) {
this.init(setting);
this.render();
this.closeSelectClick();
this.initEvent();
} else {
throw new Error('Specify settings!');
}
}
//Getters