aboutsummaryrefslogtreecommitdiff
path: root/modern/src/form
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/form')
-rw-r--r--modern/src/form/SelectField.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/form/SelectField.js b/modern/src/form/SelectField.js
index 303d203c..420ad19e 100644
--- a/modern/src/form/SelectField.js
+++ b/modern/src/form/SelectField.js
@@ -11,6 +11,7 @@ const SelectField = ({
multiple,
value,
emptyValue = 0,
+ emptyTitle = '\u00a0',
onChange,
endpoint,
data,
@@ -38,7 +39,7 @@ const SelectField = ({
onChange={onChange}
>
{!multiple && emptyValue !== null
- && <MenuItem value={emptyValue}>&nbsp;</MenuItem>}
+ && <MenuItem value={emptyValue}>{emptyTitle}</MenuItem>}
{items.map((item) => (
<MenuItem key={keyGetter(item)} value={keyGetter(item)}>{titleGetter(item)}</MenuItem>
))}