feat(xo-web/modal/form): don't close on click or escape (#5002)
See xoa-support#2469 When the user clicks outside of a form modal or presses escape, don't close the modal as all the information they entered so far will be lost.
This commit is contained in:
parent
d547aa8ebd
commit
1dead8b080
@ -11,6 +11,7 @@
|
||||
- [XOA/licenses] Display proxy licenses (PR [#4944](https://github.com/vatesfr/xen-orchestra/pull/4944))
|
||||
- [Network selector] Display pool's name [#4885](https://github.com/vatesfr/xen-orchestra/issues/4885) (PR [#4990](https://github.com/vatesfr/xen-orchestra/pull/4990))
|
||||
- [Usage report] Include CSV raw data files to the sent email [#4970](https://github.com/vatesfr/xen-orchestra/issues/4970) (PR [#4979](https://github.com/vatesfr/xen-orchestra/pull/4979))
|
||||
- [Modal] Don't close pop-up forms when you click outside or press escape (PR [#5002](https://github.com/vatesfr/xen-orchestra/pull/5002))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
|
@ -368,7 +368,9 @@ export const FormModal = decorate([
|
||||
injectState,
|
||||
({ state, effects }) => (
|
||||
<ReactModal
|
||||
backdrop='static'
|
||||
bsSize={state.size}
|
||||
keyboard={false}
|
||||
onExited={effects.reset}
|
||||
onHide={effects.onCancel}
|
||||
show={state.opened}
|
||||
|
Loading…
Reference in New Issue
Block a user