From 74c82667bb1f0d5d4994212b1fe827bff40d82ca Mon Sep 17 00:00:00 2001 From: Ali Dorosty Date: Sat, 27 Jan 2024 02:36:06 +0330 Subject: [PATCH] fix: revert default value --- src/utils/windows.js | 2 +- src/window.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/windows.js b/src/utils/windows.js index 2096c36..799f27e 100644 --- a/src/utils/windows.js +++ b/src/utils/windows.js @@ -58,7 +58,7 @@ export const createAttributes = attrs => ({ visibility: 'global', shadowDOM: false, clamp: true, - droppable: {}, + droppable: true, mediaQueries: { small: 'screen and (max-width: 640px)', medium: 'screen and (min-width: 640px) and (max-width: 1024px)', diff --git a/src/window.js b/src/window.js index 0c9de80..fc1fc2b 100644 --- a/src/window.js +++ b/src/window.js @@ -84,7 +84,7 @@ import logger from './logger'; * @property {boolean} [controls=true] Show controls * @property {string} [visibility=global] Global visibility, 'restricted' to hide from window lists etc. * @property {boolean} [clamp=true] Clamp the window position upon creation - * @property {boolean | {dataTransferProperty?: 'files' | 'items'}} [droppable={}] If window should have the default drop action + * @property {boolean | {dataTransferProperty?: 'files' | 'items'}} [droppable=true] If window should have the default drop action * @property {WindowDimension} [minDimension] Minimum dimension * @property {WindowDimension} [maxDimension] Maximum dimension * @property {{name: string}} [mediaQueries] A map of matchMedia to name