@antscorp/antsomi-ui 1.3.5-beta.262 → 1.3.5-beta.263

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.
@@ -273,6 +273,9 @@ export const ImageEditor = React.forwardRef((props, ref) => {
273
273
  isPaintRef.current = false;
274
274
  if (drawAction !== DrawAction.Select)
275
275
  dispatch({ type: 'SAVE_HISTORY' });
276
+ // NOTE: Guard check showSelection is falsy =>don't run code below
277
+ if (!showSelection)
278
+ return;
276
279
  if (selectionPosition.visible) {
277
280
  setSelectionPosition(prev => (Object.assign(Object.assign({}, prev), { visible: false })));
278
281
  const shapes = ((_a = stageRef.current) === null || _a === void 0 ? void 0 : _a.find('.shape')) || [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.262",
3
+ "version": "1.3.5-beta.263",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",