diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-04 17:12:00 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-04 17:12:00 -0700 |
commit | f559ae8d2f9c4a9bc5f450faa749a8ce13645fdd (patch) | |
tree | 91511c6800e6fba8ba837a43190d89b46ea6edd2 /modern/src/form | |
parent | ebbf533b5f8bae16a946852fccef397e4bbe8f7d (diff) | |
download | trackermap-web-f559ae8d2f9c4a9bc5f450faa749a8ce13645fdd.tar.gz trackermap-web-f559ae8d2f9c4a9bc5f450faa749a8ce13645fdd.tar.bz2 trackermap-web-f559ae8d2f9c4a9bc5f450faa749a8ce13645fdd.zip |
Implement send commands
Diffstat (limited to 'modern/src/form')
-rw-r--r-- | modern/src/form/SelectField.js | 3 |
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}> </MenuItem>} + && <MenuItem value={emptyValue}>{emptyTitle}</MenuItem>} {items.map((item) => ( <MenuItem key={keyGetter(item)} value={keyGetter(item)}>{titleGetter(item)}</MenuItem> ))} |