File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
karavan-designer/src/designer/property/property
karavan-space/src/designer/property/property Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ export function ComponentPropertyField(props: Props) {
269269 type = { property . secret && ! showPassword ? "password" : "text" }
270270 autoComplete = "off"
271271 id = { id } name = { id }
272- value = { textValue !== undefined ? textValue : property . defaultValue }
272+ value = { ( textValue !== undefined ? textValue : property . defaultValue ) || '' }
273273 onBlur = { _ => parametersChanged ( property . name , textValue , property . kind === 'path' ) }
274274 onChange = { ( _ , v ) => {
275275 setTextValue ( v ) ;
@@ -325,7 +325,7 @@ export function ComponentPropertyField(props: Props) {
325325 type = { ( property . secret ? "password" : "text" ) }
326326 autoComplete = "off"
327327 id = { id } name = { id }
328- value = { textValue !== undefined ? textValue : property . defaultValue }
328+ value = { ( textValue !== undefined ? textValue : property . defaultValue ) || '' }
329329 onBlur = { _ => parametersChanged ( property . name , textValue , property . kind === 'path' ) }
330330 onChange = { ( _ , v ) => {
331331 setTextValue ( v ) ;
@@ -396,7 +396,7 @@ export function ComponentPropertyField(props: Props) {
396396 name = { property . name + "-placeholder" }
397397 type = "text"
398398 aria-label = "placeholder"
399- value = { ! isValueBoolean ? textValue ?. toString ( ) : undefined }
399+ value = { ! isValueBoolean ? textValue ?. toString ( ) : '' }
400400 onBlur = { _ => onParametersChange ( property . name , textValue ) }
401401 onChange = { ( _ , v ) => {
402402 setTextValue ( v ) ;
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ export function ComponentPropertyField(props: Props) {
269269 type = { property . secret && ! showPassword ? "password" : "text" }
270270 autoComplete = "off"
271271 id = { id } name = { id }
272- value = { textValue !== undefined ? textValue : property . defaultValue }
272+ value = { ( textValue !== undefined ? textValue : property . defaultValue ) || '' }
273273 onBlur = { _ => parametersChanged ( property . name , textValue , property . kind === 'path' ) }
274274 onChange = { ( _ , v ) => {
275275 setTextValue ( v ) ;
@@ -325,7 +325,7 @@ export function ComponentPropertyField(props: Props) {
325325 type = { ( property . secret ? "password" : "text" ) }
326326 autoComplete = "off"
327327 id = { id } name = { id }
328- value = { textValue !== undefined ? textValue : property . defaultValue }
328+ value = { ( textValue !== undefined ? textValue : property . defaultValue ) || '' }
329329 onBlur = { _ => parametersChanged ( property . name , textValue , property . kind === 'path' ) }
330330 onChange = { ( _ , v ) => {
331331 setTextValue ( v ) ;
@@ -396,7 +396,7 @@ export function ComponentPropertyField(props: Props) {
396396 name = { property . name + "-placeholder" }
397397 type = "text"
398398 aria-label = "placeholder"
399- value = { ! isValueBoolean ? textValue ?. toString ( ) : undefined }
399+ value = { ! isValueBoolean ? textValue ?. toString ( ) : '' }
400400 onBlur = { _ => onParametersChange ( property . name , textValue ) }
401401 onChange = { ( _ , v ) => {
402402 setTextValue ( v ) ;
You can’t perform that action at this time.
0 commit comments