refactor(utils): rename function

This commit is contained in:
moklick
2019-10-07 14:28:43 +02:00
parent 4f4f597eb6
commit eba97b586f
5 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import React, { useEffect, useRef, useState, memo } from 'react';
import ReactDraggable from 'react-draggable';
import cx from 'classnames';
import { getDimensions, isInputNode } from '../../utils';
import { getDimensions, inInputDOMNode } from '../../utils';
import { Provider } from '../../contexts/NodeIdContext';
import store from '../../store';
@@ -45,7 +45,7 @@ const getHandleBounds = (sel, nodeElement, parentBounds, k) => {
};
const onStart = (evt, { setOffset, onClick, id, type, data, position, transform }) => {
if (isInputNode(evt) || isHandle(evt)) {
if (inInputDOMNode(evt) || isHandle(evt)) {
return false;
}