Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit 2e73976

Browse files
committed
Future-proof one of the class names
1 parent feeeaa1 commit 2e73976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react-image-lightbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ class ReactImageLightbox extends Component {
326326
}
327327

328328
closeIfClickInner(event) {
329-
if (!this.preventInnerClose && event.target.className.search(/\binner\b/) > -1) {
329+
if (!this.preventInnerClose && event.target.className.search(/\bril-inner\b/) > -1) {
330330
this.requestClose(event);
331331
}
332332
}

0 commit comments

Comments
 (0)