diff --git a/components/apolloTable/component/Cell.tsx b/components/apolloTable/component/Cell.tsx index 58c60b44466a4ea0e04f83202be8e7657b503b62..7b61b702fcb3f0cc9169ebfcf637d01f8d206b74 100644 --- a/components/apolloTable/component/Cell.tsx +++ b/components/apolloTable/component/Cell.tsx @@ -173,7 +173,7 @@ const Cell = (props: CellProps) => { {showExpand && columnIndex === 0 && (
(Comp) {
};
onBlur = (e: any) => {
let currTarget = e.target;
- while (currTarget != document) {
+ while (currTarget && currTarget != document) {
let editing = currTarget.getAttribute('data-editing-cell');
// 当前点击div是正在编辑的cell时,阻止修改回调
if (editing === '1') {
diff --git a/components/apolloTable/component/base/edit/text-select/index.tsx b/components/apolloTable/component/base/edit/text-select/index.tsx
index 8ac26becff4aa28e58d0c57eb0512af10a562c1a..067115a8a03a0330f55bbbc6adb3e5c1635455d2 100644
--- a/components/apolloTable/component/base/edit/text-select/index.tsx
+++ b/components/apolloTable/component/base/edit/text-select/index.tsx
@@ -6,7 +6,7 @@ import { onBlurFn } from '../onBlurFn';
import s from './index.less';
export const ApolloInputSearch = (props: ApolloInputSearchProps) => {
- const { onChange, request, type } = props;
+ const { onChange, request } = props;
const selfProps = antiAssign(props, ['columnConfig', 'onChange', 'request']);
const isOpen = useRef();
const changeValue = (value: any) => {
@@ -23,7 +23,7 @@ export const ApolloInputSearch = (props: ApolloInputSearchProps) => {
return (