Skip to content

Commit

Permalink
DSL Property filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mgubaidullin committed Nov 13, 2024
1 parent 95b4a7f commit df7fc2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export function ComponentPropertyField(props: Props) {
type={property.secret && !showPassword ? "password" : "text"}
autoComplete="off"
id={id} name={id}
value={textValue !== undefined ? textValue : property.defaultValue}
value={(textValue !== undefined ? textValue : property.defaultValue) || ''}
onBlur={_ => parametersChanged(property.name, textValue, property.kind === 'path')}
onChange={(_, v) => {
setTextValue(v);
Expand Down Expand Up @@ -325,7 +325,7 @@ export function ComponentPropertyField(props: Props) {
type={(property.secret ? "password" : "text")}
autoComplete="off"
id={id} name={id}
value={textValue !== undefined ? textValue : property.defaultValue}
value={(textValue !== undefined ? textValue : property.defaultValue) || ''}
onBlur={_ => parametersChanged(property.name, textValue, property.kind === 'path')}
onChange={(_, v) => {
setTextValue(v);
Expand Down Expand Up @@ -396,7 +396,7 @@ export function ComponentPropertyField(props: Props) {
name={property.name + "-placeholder"}
type="text"
aria-label="placeholder"
value={!isValueBoolean ? textValue?.toString() : undefined}
value={!isValueBoolean ? textValue?.toString() : ''}
onBlur={_ => onParametersChange(property.name, textValue)}
onChange={(_, v) => {
setTextValue(v);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export function ComponentPropertyField(props: Props) {
type={property.secret && !showPassword ? "password" : "text"}
autoComplete="off"
id={id} name={id}
value={textValue !== undefined ? textValue : property.defaultValue}
value={(textValue !== undefined ? textValue : property.defaultValue) || ''}
onBlur={_ => parametersChanged(property.name, textValue, property.kind === 'path')}
onChange={(_, v) => {
setTextValue(v);
Expand Down Expand Up @@ -325,7 +325,7 @@ export function ComponentPropertyField(props: Props) {
type={(property.secret ? "password" : "text")}
autoComplete="off"
id={id} name={id}
value={textValue !== undefined ? textValue : property.defaultValue}
value={(textValue !== undefined ? textValue : property.defaultValue) || ''}
onBlur={_ => parametersChanged(property.name, textValue, property.kind === 'path')}
onChange={(_, v) => {
setTextValue(v);
Expand Down Expand Up @@ -396,7 +396,7 @@ export function ComponentPropertyField(props: Props) {
name={property.name + "-placeholder"}
type="text"
aria-label="placeholder"
value={!isValueBoolean ? textValue?.toString() : undefined}
value={!isValueBoolean ? textValue?.toString() : ''}
onBlur={_ => onParametersChange(property.name, textValue)}
onChange={(_, v) => {
setTextValue(v);
Expand Down

0 comments on commit df7fc2a

Please sign in to comment.