@daren/form-elements
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -52,3 +52,3 @@ "use strict"; | ||
setSelected(val); | ||
if (onChange) onChange(); | ||
if (onChange) onChange(val == null ? void 0 : val.value); | ||
}, [onChange]); | ||
@@ -55,0 +55,0 @@ return /*#__PURE__*/React.createElement("div", { |
@@ -33,3 +33,3 @@ var _excluded = ["id", "items", "name", "onChange", "hasError", "defaultValue", "disabled"]; | ||
setSelected(val); | ||
if (onChange) onChange(); | ||
if (onChange) onChange(val == null ? void 0 : val.value); | ||
}, [onChange]); | ||
@@ -36,0 +36,0 @@ return /*#__PURE__*/React.createElement("div", { |
@@ -10,3 +10,3 @@ import * as React from 'react'; | ||
}[]; | ||
onChange?(): void; | ||
onChange?(value?: string): void; | ||
value?: string; | ||
@@ -13,0 +13,0 @@ hasError?: boolean; |
{ | ||
"name": "@daren/form-elements", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"repository": { | ||
@@ -53,3 +53,3 @@ "type": "git", | ||
}, | ||
"gitHead": "b03071aac43cc5b2e7b3d85671cc1fa93e56f9e5" | ||
"gitHead": "4e24ca4c1f3f3d02ca28d2084917368243e28348" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
105643