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

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
node_modules node_modules
dist dist
.parcel-cache .parcel-cache
.test

View File

@ -67,3 +67,7 @@ Tested in JS and React. Errors in work in React applications are revealed.
### 00.03.2023 - update 0.2.7 ### 00.03.2023 - update 0.2.7
- Switch to new webpack project builder. - Switch to new webpack project builder.
##### 00.03.2023 - fix 0.2.71
- Select import fixed.

View File

@ -1,6 +1,6 @@
# CG-SELECT # CG-SELECT
## version ~ 0.2.7 ## version ~ 0.2.71
<a href="https://github.com/apuc/cg-select/blob/main/READMERU.md">ЧИТАТЬ НА РУССКОМ</a> <a href="https://github.com/apuc/cg-select/blob/main/READMERU.md">ЧИТАТЬ НА РУССКОМ</a>

View File

@ -1,6 +1,6 @@
# CG-SELECT # CG-SELECT
## Версия ~ 0.2.7 ## Версия ~ 0.2.71
<a href="https://github.com/apuc/cg-select/blob/main/README.md">English README</a> <a href="https://github.com/apuc/cg-select/blob/main/README.md">English README</a>

View File

@ -1,6 +1,3 @@
import { CGSelect } from './src/cg-select'; import { CGSelect } from './src/cg-select';
let select = new CGSelect();
select.disabled(true);
export default CGSelect; export default CGSelect;

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "cg-select", "name": "cg-select",
"version": "0.2.7", "version": "0.2.71",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "cg-select", "name": "cg-select",
"version": "0.2.7", "version": "0.2.71",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@types/prettier": "^2.7.2", "@types/prettier": "^2.7.2",

View File

@ -1,6 +1,6 @@
{ {
"name": "cg-select", "name": "cg-select",
"version": "0.2.7", "version": "0.2.71",
"source": "index.js", "source": "index.js",
"main": "dist/index.js", "main": "dist/index.js",
"description": "Feature rich Select control for React/JS with multiselect, autocomplete and styling", "description": "Feature rich Select control for React/JS with multiselect, autocomplete and styling",

View File

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