Commit b1918fbc authored by zhangwenshuai's avatar zhangwenshuai

修改样式兼容

parent 0413ff18
...@@ -759,7 +759,7 @@ export default class AirTable extends Component<TableProps, TableState> { ...@@ -759,7 +759,7 @@ export default class AirTable extends Component<TableProps, TableState> {
style={{ style={{
width: `${rightWidth}px`, width: `${rightWidth}px`,
height: `${totalHeight - scrollbarWidth + headerHeight}px`, height: `${totalHeight - scrollbarWidth + headerHeight}px`,
right: scrollbarWidth, right: paddingRight,
}} }}
> >
{ {
......
...@@ -31,7 +31,7 @@ export default function CellContainer<P extends Props>(Comp) { ...@@ -31,7 +31,7 @@ export default function CellContainer<P extends Props>(Comp) {
}; };
onBlur = (e: any) => { onBlur = (e: any) => {
let currTarget = e.target; let currTarget = e.target;
while (currTarget != document) { while (currTarget && currTarget != document) {
let editing = currTarget.getAttribute('data-editing-cell'); let editing = currTarget.getAttribute('data-editing-cell');
// 当前点击div是正在编辑的cell时,阻止修改回调 // 当前点击div是正在编辑的cell时,阻止修改回调
if (editing === '1') { if (editing === '1') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment