Commit 368594e8 by Dominik Prokop Committed by GitHub

Field options: show field name when title option config is empty (#24335)

parent 7219d9bd
......@@ -14,7 +14,9 @@ export const StringValueEditor: React.FC<FieldConfigEditorProps<string, StringFi
placeholder={item.settings?.placeholder}
value={value || ''}
rows={item.settings?.useTextarea && item.settings.rows}
onChange={(e: React.FormEvent<any>) => onChange(e.currentTarget.value)}
onChange={(e: React.FormEvent<any>) =>
onChange(e.currentTarget.value.trim() === '' ? undefined : e.currentTarget.value)
}
/>
);
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment