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:
Arnaud Benhamdine 2020-10-10 17:02:38 +02:00 committed by GitHub
parent 340a0a913a
commit 3a7273b5da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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