diff --git a/src/components/StyleInput/StyleInput.tsx b/src/components/StyleInput/StyleInput.tsx index e3f9cc0..61d32a1 100644 --- a/src/components/StyleInput/StyleInput.tsx +++ b/src/components/StyleInput/StyleInput.tsx @@ -57,11 +57,18 @@ const StyleInput: React.FC = () => { searchable={false} labelField="key" onChange={(values) => setStyle(values[0].value as IconStyle)} - itemRenderer={({ item, itemIndex, state: { cursor, values }, methods }) => ( + itemRenderer={({ + item, + itemIndex, + state: { cursor, values }, + methods, + }) => ( methods.addItem(item)} > @@ -69,8 +76,8 @@ const StyleInput: React.FC = () => { {item.key} )} - contentRenderer={({ state: { values }, methods }) => ( -
+ contentRenderer={({ state: { values } }) => ( +
{values[0].icon} {values[0].key}