Skip to content

Commit 6d81ccc

Browse files
committed
Merge branch 'release/10.9.5'
2 parents a7fe3dd + d5a6fe4 commit 6d81ccc

5 files changed

Lines changed: 9 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Change Log
22
This project adheres to [Semantic Versioning](http://semver.org/).
33

4+
## 10.9.5
5+
_December 28, 2023_
6+
- Bug fix in `<Modal>`: Bail out of `onClickOutside` event handler if the Modal is not open. [PR #484](https://github.com/saddlebackdev/react-cm-ui/pull/484)
7+
48
## 10.9.4
59
_December 1, 2023_
610
- No substantive changes in the library itself. All documentation changes. [PR #483](https://github.com/saddlebackdev/react-cm-ui/pull/483)

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@saddlebackchurch/react-cm-ui",
3-
"version": "10.9.4",
3+
"version": "10.9.5",
44
"description": "React UI for Healthy Church",
55
"jsnext:main": "src/",
66
"main": "core/",

src/surfaces/modal/modal.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,10 @@ class Modal extends React.Component {
353353
const {
354354
onClickOutside,
355355
onClose,
356+
isOpen,
356357
} = this.props;
357358

358-
if (this.modalContainerRef.contains(event.target) || !onClickOutside) {
359+
if (!isOpen || this.modalContainerRef.contains(event.target) || !onClickOutside) {
359360
return;
360361
}
361362

src/versions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
const versions = {
2020
'react-cm-ui': {
21-
package: '10.9.4',
21+
package: '10.9.5',
2222
components: {
2323
dataDisplay: {
2424
chip: {

0 commit comments

Comments
 (0)