@rainbow-oh/yee-c 0.8.3 → 0.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rainbow-oh/yee-c",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "description": "yee basic components",
5
5
  "keywords": [
6
6
  "react",
@@ -242,6 +242,11 @@ export class FormStore {
242
242
  return false;
243
243
  });
244
244
  }
245
+ // If no rules match the current trigger, skip validation entirely
246
+ // to avoid clearing existing errors from a previous validation pass.
247
+ if (trigger && mergedRules.length === 0) {
248
+ return [];
249
+ }
245
250
  const value = this.getFieldValue(name);
246
251
  for (const rule of mergedRules) {
247
252
  const result = await validate(rule, value);
@@ -81,7 +81,7 @@ export interface SelectProps
81
81
  /**
82
82
  * Dropdown options
83
83
  */
84
- options: Array<Option>;
84
+ options?: Array<Option>;
85
85
  /**
86
86
  * Selection mode
87
87
  */
package/src/version.ts CHANGED
@@ -4,7 +4,7 @@ declare global {
4
4
  }
5
5
  }
6
6
 
7
- export const version = "0.8.3";
7
+ export const version = "0.8.4";
8
8
 
9
9
  if (typeof window !== 'undefined') {
10
10
  window.__yee_c_version__ = version;