chore: allow space in backend parameters
This commit is contained in:
@@ -13,10 +13,19 @@ interface LabelItemProps {
|
||||
label?: string;
|
||||
placeholder?: string;
|
||||
options?: Global.HintOptions[];
|
||||
trim?: boolean;
|
||||
}
|
||||
|
||||
const ListItem: React.FC<LabelItemProps> = (props) => {
|
||||
const { onRemove, onChange, onBlur, label, value, options } = props;
|
||||
const {
|
||||
onRemove,
|
||||
onChange,
|
||||
onBlur,
|
||||
label,
|
||||
value,
|
||||
options,
|
||||
trim = true
|
||||
} = props;
|
||||
|
||||
const handleOnChange = (value: any) => {
|
||||
onChange(value);
|
||||
@@ -30,6 +39,7 @@ const ListItem: React.FC<LabelItemProps> = (props) => {
|
||||
onBlur={onBlur}
|
||||
label={label}
|
||||
sourceOptions={options}
|
||||
trim={trim}
|
||||
placeholder={props.placeholder}
|
||||
/>
|
||||
<Button
|
||||
@@ -44,4 +54,4 @@ const ListItem: React.FC<LabelItemProps> = (props) => {
|
||||
);
|
||||
};
|
||||
|
||||
export default React.memo(ListItem);
|
||||
export default ListItem;
|
||||
|
||||
Reference in New Issue
Block a user