fix 0.2.71
This commit is contained in:
parent
197a5f25c8
commit
570c7f5512
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
node_modules
|
||||
dist
|
||||
.parcel-cache
|
||||
.test
|
||||
|
||||
|
@ -67,3 +67,7 @@ Tested in JS and React. Errors in work in React applications are revealed.
|
||||
### 00.03.2023 - update 0.2.7
|
||||
|
||||
- Switch to new webpack project builder.
|
||||
|
||||
##### 00.03.2023 - fix 0.2.71
|
||||
|
||||
- Select import fixed.
|
||||
|
@ -1,6 +1,6 @@
|
||||
# CG-SELECT
|
||||
|
||||
## version ~ 0.2.7
|
||||
## version ~ 0.2.71
|
||||
|
||||
<a href="https://github.com/apuc/cg-select/blob/main/READMERU.md">ЧИТАТЬ НА РУССКОМ</a>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# CG-SELECT
|
||||
|
||||
## Версия ~ 0.2.7
|
||||
## Версия ~ 0.2.71
|
||||
|
||||
<a href="https://github.com/apuc/cg-select/blob/main/README.md">English README</a>
|
||||
|
||||
|
3
index.js
3
index.js
@ -1,6 +1,3 @@
|
||||
import { CGSelect } from './src/cg-select';
|
||||
|
||||
let select = new CGSelect();
|
||||
select.disabled(true);
|
||||
|
||||
export default CGSelect;
|
||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "cg-select",
|
||||
"version": "0.2.7",
|
||||
"version": "0.2.71",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "cg-select",
|
||||
"version": "0.2.7",
|
||||
"version": "0.2.71",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@types/prettier": "^2.7.2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cg-select",
|
||||
"version": "0.2.7",
|
||||
"version": "0.2.71",
|
||||
"source": "index.js",
|
||||
"main": "dist/index.js",
|
||||
"description": "Feature rich Select control for React/JS with multiselect, autocomplete and styling",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user