mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
add maskClosable is false ESC close
This commit is contained in:
parent
364e1624ea
commit
9ec4aaa9f4
@ -105,8 +105,8 @@ class Drawer extends React.Component<DrawerProps & ConfigConsumerProps, IDrawerS
|
||||
}
|
||||
};
|
||||
|
||||
onMaskClick = (e: EventType) => {
|
||||
if (!this.props.maskClosable) {
|
||||
onMaskClick = (e: any) => {
|
||||
if (!this.props.maskClosable && !e.keyCode) {
|
||||
return;
|
||||
}
|
||||
this.close(e);
|
||||
|
Loading…
Reference in New Issue
Block a user