🤖 Merge PR #46649 react-image-gallery: Update 'disableArrowKeys' to 'disableKeyDown' by @alexfiftysix

* change from `disableArrowKeys` to `disableKeyDown`

* Update tests

* Update version number

Co-authored-by: Alex Miller <alex.miller@readify.net>
This commit is contained in:
alexfiftysix 2020-08-13 10:40:41 +10:00 committed by GitHub
parent bcbb438661
commit bc93e254f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
// Type definitions for react-image-gallery 0.9
// Type definitions for react-image-gallery 1.0
// Project: https://github.com/xiaolin/react-image-gallery
// Definitions by: Adam Webb <https://github.com/adamwpc>
// William Tio <https://github.com/WToa>
@ -49,7 +49,7 @@ export interface ReactImageGalleryProps {
showPlayButton?: boolean;
showFullscreenButton?: boolean;
disableThumbnailScroll?: boolean;
disableArrowKeys?: boolean;
disableKeyDown?: boolean;
disableSwipe?: boolean;
useBrowserFullscreen?: boolean;
preventDefaultTouchmoveEvent?: boolean;

View File

@ -38,7 +38,8 @@ class ImageGallery extends React.Component {
items: [galleryItem],
autoPlay: false,
showFullscreenButton: false,
renderThumbInner: this.renderThumbInner
renderThumbInner: this.renderThumbInner,
disableKeyDown: false
};
return <ReactImageGallery ref={(r) => this.gallery = r} {...props} />;