@subiz/widget-v4 4.0.60 → 4.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/less/chatbox.less
CHANGED
|
@@ -118,7 +118,7 @@ class Popup extends _common.Com {
|
|
|
118
118
|
|
|
119
119
|
let form = _index.default.find(page.components, com => com.type === 'form');
|
|
120
120
|
|
|
121
|
-
if (!form || !form.form) return;
|
|
121
|
+
if (!form || !form.form) return true;
|
|
122
122
|
|
|
123
123
|
let fields = _index.default.get(form, 'form.fields', []);
|
|
124
124
|
|
|
@@ -275,7 +275,7 @@ class Popup extends _common.Com {
|
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
if (hasConversion) {
|
|
278
|
-
var formData = new FormData(this._formRef.current);
|
|
278
|
+
var formData = this._formRef.current ? new FormData(this._formRef.current) : new FormData();
|
|
279
279
|
var summitFields = [];
|
|
280
280
|
|
|
281
281
|
let user = _index.default.cloneDeep(this.props.store.matchUser());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@subiz/widget-v4",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.61",
|
|
4
4
|
"main": "./compiled_src/lib.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "npx webpack serve --config webpack.dev.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@subiz/storage": "0.0.8",
|
|
16
16
|
"@subiz/wsclient": "^3.1.7",
|
|
17
17
|
"cookie_js": "1.4.2",
|
|
18
|
-
"core-js": "^3.
|
|
18
|
+
"core-js": "^3.20.0",
|
|
19
19
|
"css-loader": "^5.2.6",
|
|
20
20
|
"file-loader": "^6.2.0",
|
|
21
21
|
"less": "^4.1.2",
|
package/src/popup/popup.js
CHANGED
|
@@ -83,7 +83,7 @@ export default class Popup extends Com {
|
|
|
83
83
|
isFormFilled() {
|
|
84
84
|
let page = sb.get(this.props.plugin.popup, `pages.${this.getPageIndex()}`)
|
|
85
85
|
let form = sb.find(page.components, (com) => com.type === 'form')
|
|
86
|
-
if (!form || !form.form) return
|
|
86
|
+
if (!form || !form.form) return true
|
|
87
87
|
|
|
88
88
|
// fill form
|
|
89
89
|
let fields = sb.get(form, 'form.fields', [])
|
|
@@ -209,7 +209,7 @@ export default class Popup extends Com {
|
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
if (hasConversion) {
|
|
212
|
-
var formData = new FormData(this._formRef.current)
|
|
212
|
+
var formData = this._formRef.current ? new FormData(this._formRef.current) : new FormData()
|
|
213
213
|
var summitFields = []
|
|
214
214
|
|
|
215
215
|
let user = sb.cloneDeep(this.props.store.matchUser())
|