@launcher/component
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -378,3 +378,4 @@ import React__default, { useContext, createElement, useState, useEffect, createContext, Fragment } from 'react'; | ||
var analytics = useAnalytics(); | ||
return (React__default.createElement(FormGroup, { fieldId: props.id, label: label, isValid: isValid || !isDirty, helperTextInvalid: helperTextInvalid }, | ||
var valid = (!isDirty && !props.value) || isValid; | ||
return (React__default.createElement(FormGroup, { fieldId: props.id, label: label, isValid: valid, helperTextInvalid: helperTextInvalid }, | ||
React__default.createElement(TextInput, __assign({ onChange: function (value, event) { | ||
@@ -388,3 +389,3 @@ if (!isDirty) { | ||
} | ||
}, isValid: isValid || !isDirty }, rest)))); | ||
}, isValid: valid }, rest)))); | ||
} | ||
@@ -391,0 +392,0 @@ |
@@ -385,3 +385,4 @@ 'use strict'; | ||
var analytics = useAnalytics(); | ||
return (React__default.createElement(reactCore.FormGroup, { fieldId: props.id, label: label, isValid: isValid || !isDirty, helperTextInvalid: helperTextInvalid }, | ||
var valid = (!isDirty && !props.value) || isValid; | ||
return (React__default.createElement(reactCore.FormGroup, { fieldId: props.id, label: label, isValid: valid, helperTextInvalid: helperTextInvalid }, | ||
React__default.createElement(reactCore.TextInput, __assign({ onChange: function (value, event) { | ||
@@ -395,3 +396,3 @@ if (!isDirty) { | ||
} | ||
}, isValid: isValid || !isDirty }, rest)))); | ||
}, isValid: valid }, rest)))); | ||
} | ||
@@ -398,0 +399,0 @@ |
{ | ||
"name": "@launcher/component", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"license": "Apache-2.0", | ||
@@ -50,3 +50,3 @@ "main": "build/index.js", | ||
}, | ||
"gitHead": "23092f67a2455b09d171f9eb27ead0cd9cbc43a1" | ||
"gitHead": "ade9319dd81da62ba67d8d81d32dae2764e2b3e4" | ||
} |
56815
1041