Skip to content

Commit

Permalink
add placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
kchobantonov committed Dec 6, 2024
1 parent 046e1ce commit 389a242
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const AntdInputNumberFormat = (
id={id}
disabled={!enabled}
autoFocus={appliedUiSchemaOptions.focus}
placeholder={appliedUiSchemaOptions.placeholder}
maxLength={maxLength}
style={inputStyle}
{...inputProps}
Expand Down
1 change: 1 addition & 0 deletions packages/antd-renderers/src/antd-controls/AntdSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const AntdSelect = (
value={data !== undefined ? data : ''}
onChange={(value) => handleChange(path, value || undefined)}
style={selectStyle}
placeholder={appliedUiSchemaOptions.placeholder}
allowClear={enabled}
{...inputProps}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const PrimeInputNumberFormat = (
id={id}
disabled={!enabled}
autoFocus={appliedUiSchemaOptions.focus}
placeholder={appliedUiSchemaOptions.placeholder}
maxLength={maxLength}
style={inputStyle}
invalid={!!errors}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const PrimeSelect = (
style={selectStyle}
showClear={enabled}
checkmark={true}
placeholder={appliedUiSchemaOptions.placeholder}
options={options.map((optionValue) => ({
value: optionValue.value,
label: optionValue.label,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const PrimeSlider = React.memo(function PrimeSlider(
min={schema.minimum}
max={schema.maximum}
disabled={!enabled}
placeholder={appliedUiSchemaOptions.placeholder}
onChange={(e) => handleChange(path, Number(e.value))}
invalid={!!errors}
/>
Expand Down

0 comments on commit 389a242

Please sign in to comment.