fix: clearKeywords
This commit is contained in:
parent
406813e932
commit
0a90101a58
@ -188,7 +188,7 @@ SchemaInitializer.Item = (props: SchemaInitializerItemProps) => {
|
||||
eventKey={item.key}
|
||||
key={item.key}
|
||||
onClick={(info) => {
|
||||
item?.clearKeywords();
|
||||
item?.clearKeywords?.();
|
||||
onClick({ ...info, item });
|
||||
}}
|
||||
>
|
||||
@ -216,7 +216,7 @@ SchemaInitializer.Item = (props: SchemaInitializerItemProps) => {
|
||||
eventKey={eventKey ? `${eventKey}-${index}` : info.key}
|
||||
icon={typeof icon === 'string' ? <Icon type={icon as string} /> : icon}
|
||||
onClick={(opts) => {
|
||||
info?.clearKeywords();
|
||||
info?.clearKeywords?.();
|
||||
onClick({ ...opts, item: info });
|
||||
}}
|
||||
>
|
||||
|
@ -1,4 +1,4 @@
|
||||
.nb-menu-item-group {
|
||||
max-height: 60vh;
|
||||
max-height: 50vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user