Merge branch 'fix/widget-boundaries-persist' into 'release'

Fix widget boundaries persist issue

- FIX for - Widget boundaries persisted after dropping a new widget

See merge request theappsmith/internal-tools-client!251
This commit is contained in:
Hetu Nandu 2020-01-21 07:14:47 +00:00
commit 075269e5b7
2 changed files with 5 additions and 1 deletions

View File

@ -26,6 +26,8 @@ import {
useWidgetSelection,
useWidgetDragResize,
} from "utils/hooks/dragResizeHooks";
import { useSelector } from "react-redux";
import { AppState } from "reducers";
/* eslint-disable react/display-name */
export const ResizableComponent = memo((props: ResizableComponentProps) => {

View File

@ -68,10 +68,12 @@ const WidgetCard = (props: CardProps) => {
isDragging: monitor.isDragging(),
}),
begin: () => {
console.log("begun!");
showPropertyPane && showPropertyPane(undefined);
setIsDragging && setIsDragging(true);
},
end: () => {
setIsDragging && setIsDragging(false);
},
});
const iconType: string = props.details.type;