react-admin-base-bootstrap 0.9.3 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -98,7 +98,7 @@ export function ModalEntityEditor({ entity, title, size, url, onReload, disabled
98
98
  ' ',
99
99
  React.createElement(FormattedMessage, { id: "ENTITY.SAVE" }))),
100
100
  React.createElement(Col, null,
101
- React.createElement(Button, { block: true, outline: true, color: "danger", onClick: (e) => { e.preventDefault(); (url ? setOpen(false) : onReload(null)); } },
101
+ React.createElement(Button, { type: "button", block: true, outline: true, color: "danger", onClick: onClose },
102
102
  React.createElement("i", { className: "fas fa-times-circle" }),
103
103
  ' ',
104
104
  React.createElement(FormattedMessage, { id: "ENTITY.CANCEL" })))))))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-admin-base-bootstrap",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -38,7 +38,7 @@
38
38
  "modal-cropper": "^1.2.3",
39
39
  "nprogress": "^0.2.0",
40
40
  "prettysize": "^2.0.0",
41
- "react-admin-base": "^0.9.0",
41
+ "react-admin-base": "^0.9.1",
42
42
  "react-dnd": "^16.0.1",
43
43
  "react-dnd-html5-backend": "^16.0.1",
44
44
  "react-password-strength-bar": "^0.4.1",
@@ -97,7 +97,7 @@ export function ModalEntityEditor({ entity, title, size, url, onReload, disabled
97
97
  </LoadingButton>
98
98
  </Col>
99
99
  <Col>
100
- <Button block outline color="danger" onClick={(e) => { e.preventDefault(); (url ? setOpen(false) : onReload(null)); }}>
100
+ <Button type="button" block outline color="danger" onClick={onClose}>
101
101
  <i className="fas fa-times-circle" />{' '}<FormattedMessage id="ENTITY.CANCEL" />
102
102
  </Button>
103
103
  </Col>