uiw 4.10.3 → 4.10.4

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/README.md CHANGED
@@ -51,7 +51,7 @@ You can use [`kkt`](https://github.com/kktjs/kkt) to quickly create a react + ui
51
51
  npx create-kkt my-app -e uiw
52
52
  ```
53
53
 
54
- You can use the [`uiw v1.x`](https://github.com/uiwjs/uiw/tree/v1) version. [Please see here for instructions](https://github.com/uiwjs/uiw/tree/v1). ([**npx**](https://github.com/npm/npm/releases/tag/v5.2.0) comes with npm 5.2+ and higher.)
54
+ You can use the [`uiw v1.x`](https://github.com/uiwjs/uiw/tree/v1) version. [Please see here for instructions](https://github.com/uiwjs/uiw/tree/v1). ([**npx**](https://github.com/npm/npm/releases/tag/v5.2.0) comes with npm `5.2+` and higher.)
55
55
 
56
56
  ### Basic Usage
57
57
 
@@ -151,7 +151,7 @@ Or clone locally:
151
151
  $ git clone https://github.com/uiwjs/uiwjs.github.io.git --recurse-submodules
152
152
  ```
153
153
 
154
- Compiled component code.
154
+ Install dependencies & compile component code.
155
155
 
156
156
  ```bash
157
157
  $ npm install # Install dependencies
@@ -189,6 +189,12 @@ Folders
189
189
      └── react-affix
190
190
  ```
191
191
 
192
+ ### Contributors
193
+
194
+ <a href="https://github.com/uiwjs/uiw/graphs/contributors">
195
+ <img src="https://uiwjs.github.io/uiw/CONTRIBUTORS.svg" />
196
+ </a>
197
+
192
198
  ### License
193
199
 
194
200
  Licensed under the MIT License.
package/dist/uiw.js CHANGED
@@ -6915,12 +6915,12 @@ function Form(_ref, ref) {
6915
6915
  };
6916
6916
 
6917
6917
  try {
6918
- var afterSubmitPromise = onSubmit({
6918
+ var afterSubmitPromise = onSubmit ? onSubmit({
6919
6919
  initial: initial,
6920
6920
  current: current
6921
- });
6921
+ }, e) : undefined;
6922
6922
 
6923
- if (isPromise(afterSubmitPromise)) {
6923
+ if (afterSubmitPromise && isPromise(afterSubmitPromise)) {
6924
6924
  return afterSubmitPromise.then(onSuccess).catch(onError);
6925
6925
  } else {
6926
6926
  return onSuccess(afterSubmitPromise);