@launchpad-ui/overlay
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -17,8 +17,2 @@ // ../../scripts/react-shim.js | ||
}; | ||
this.handleContentMount = () => { | ||
const { autoFocus } = this.props; | ||
if (autoFocus) { | ||
this.focusContainer(); | ||
} | ||
}; | ||
this.handleKeyDown = (event) => { | ||
@@ -113,4 +107,3 @@ const { canEscapeKeyClose, onClose } = this.props; | ||
onKeyDown: this.handleKeyDown, | ||
containerRef: this.setContainerRef, | ||
onChildrenMount: this.handleContentMount | ||
containerRef: this.setContainerRef | ||
}, isOpen ? children : null); | ||
@@ -117,0 +110,0 @@ } |
@@ -45,8 +45,2 @@ var __create = Object.create; | ||
}; | ||
this.handleContentMount = () => { | ||
const { autoFocus } = this.props; | ||
if (autoFocus) { | ||
this.focusContainer(); | ||
} | ||
}; | ||
this.handleKeyDown = (event) => { | ||
@@ -141,4 +135,3 @@ const { canEscapeKeyClose, onClose } = this.props; | ||
onKeyDown: this.handleKeyDown, | ||
containerRef: this.setContainerRef, | ||
onChildrenMount: this.handleContentMount | ||
containerRef: this.setContainerRef | ||
}, isOpen ? children : null); | ||
@@ -145,0 +138,0 @@ } |
@@ -31,3 +31,2 @@ import type { KeyboardEvent } from 'react'; | ||
handleOverlayClose(): void; | ||
handleContentMount: () => void; | ||
handleKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void; | ||
@@ -34,0 +33,0 @@ handleDocumentClick: (event: Event) => void; |
{ | ||
"name": "@launchpad-ui/overlay", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"publishConfig": { | ||
@@ -27,3 +27,3 @@ "access": "public" | ||
"dependencies": { | ||
"@launchpad-ui/modal": "~0.1.3", | ||
"@launchpad-ui/modal": "~0.1.4", | ||
"lodash-es": "^4.17.21" | ||
@@ -30,0 +30,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
28418
310
Updated@launchpad-ui/modal@~0.1.4