mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 12:18:15 +08:00
fix: external link click (#3908)
This commit is contained in:
parent
986dc85392
commit
0fc1d96a48
@ -558,13 +558,20 @@ Menu.URL = observer(
|
||||
key: schema.name,
|
||||
eventKey: schema.name,
|
||||
schema,
|
||||
onClick: () => {
|
||||
window.open(props.href, '_blank');
|
||||
},
|
||||
onClick: () => {},
|
||||
label: (
|
||||
<SchemaContext.Provider value={schema}>
|
||||
<FieldContext.Provider value={field}>
|
||||
<SortableItem className={designerCss} removeParentsIfNoChildren={false} aria-label={t(field.title)}>
|
||||
<SortableItem
|
||||
className={designerCss}
|
||||
onClick={(event) => {
|
||||
window.open(props.href, '_blank');
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}}
|
||||
removeParentsIfNoChildren={false}
|
||||
aria-label={t(field.title)}
|
||||
>
|
||||
<Icon type={icon} />
|
||||
<span
|
||||
style={{
|
||||
|
Loading…
Reference in New Issue
Block a user