mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 21:59:41 +08:00
docs: fix behaviour of modal draggable zone (#27077)
The behaviour of the draggable zone in the modal was incorrect : the header was supposed to be the only draggable zone, but because of an inverted logic of state change, all the modal was draggable
This commit is contained in:
parent
340a0a913a
commit
3a7273b5da
@ -59,13 +59,13 @@ class App extends React.Component {
|
||||
onMouseOver={() => {
|
||||
if (this.state.disabled) {
|
||||
this.setState({
|
||||
disabled: true,
|
||||
disabled: false,
|
||||
});
|
||||
}
|
||||
}}
|
||||
onMouseOut={() => {
|
||||
this.setState({
|
||||
disabled: false,
|
||||
disabled: true,
|
||||
});
|
||||
}}
|
||||
// fix eslintjsx-a11y/mouse-events-have-key-events
|
||||
|
Loading…
Reference in New Issue
Block a user