mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 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:
parent
bcbb438661
commit
bc93e254f7
4
types/react-image-gallery/index.d.ts
vendored
4
types/react-image-gallery/index.d.ts
vendored
@ -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;
|
||||
|
||||
@ -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} />;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user