mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
use auto complete for single select
This commit is contained in:
@@ -72,7 +72,7 @@ export const cellFormatter = (fieldType: FieldType, key: string) => {
|
||||
}
|
||||
};
|
||||
|
||||
const { DropDownEditor } = Editors;
|
||||
const { DropDownEditor, AutoComplete } = Editors;
|
||||
|
||||
export const singleSelectEditor = (options: string[]) => {
|
||||
const _options = options.map(option => ({
|
||||
@@ -81,5 +81,5 @@ export const singleSelectEditor = (options: string[]) => {
|
||||
title: option,
|
||||
text: option,
|
||||
}));
|
||||
return <DropDownEditor options={_options} />;
|
||||
return <AutoComplete options={_options} />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user