@rpg-engine/long-bow 0.3.65 → 0.3.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/long-bow.cjs.development.js +0 -11
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +0 -11
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DraggableContainer.tsx +0 -12
|
@@ -33224,17 +33224,6 @@ var DraggableContainer = function DraggableContainer(_ref) {
|
|
|
33224
33224
|
} : _ref$initialPosition;
|
|
33225
33225
|
var draggableRef = React.useRef(null);
|
|
33226
33226
|
useOutsideClick(draggableRef, 'item-container');
|
|
33227
|
-
React.useEffect(function () {
|
|
33228
|
-
var handleKeyDown = function handleKeyDown(event) {
|
|
33229
|
-
if (event.key === 'Escape' && onCloseButton) {
|
|
33230
|
-
onCloseButton();
|
|
33231
|
-
}
|
|
33232
|
-
};
|
|
33233
|
-
document.addEventListener('keydown', handleKeyDown);
|
|
33234
|
-
return function () {
|
|
33235
|
-
document.removeEventListener('keydown', handleKeyDown);
|
|
33236
|
-
};
|
|
33237
|
-
}, [onCloseButton]);
|
|
33238
33227
|
React.useEffect(function () {
|
|
33239
33228
|
document.addEventListener('clickOutside', function (event) {
|
|
33240
33229
|
var e = event;
|