mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
fix: dropdown-button 下载无效问题 (#9554)
This commit is contained in:
parent
032ea5ac2c
commit
f37c1e6fd3
@ -237,8 +237,12 @@ export default class DropDownButton extends React.Component<
|
||||
isOpened: false
|
||||
});
|
||||
}, 200);
|
||||
// PopOver hide会直接调用close方法
|
||||
e && e.preventDefault();
|
||||
|
||||
// 如果是下拉菜单,并且是下载链接,则不阻止默认事件
|
||||
if (!(e?.target as any)?.getAttribute?.('download')) {
|
||||
// PopOver hide会直接调用close方法
|
||||
e && e.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
keepOpen() {
|
||||
|
Loading…
Reference in New Issue
Block a user