<FlexGrid
itemsSource={data}
headersVisibility="Column"
>
{tableColumns.map(item => {
const { header, binding, align, format, allowSorting, cssClass, width } = item || {}
return (
<FlexGridColumn
key={binding}
header={header}
binding={binding}
align={align}
format={format}
allowSorting={allowSorting}
cssClass={cssClass}
width={width}
/>
)
})}
<wjFilter.FlexGridFilter>
</wjFilter.FlexGridFilter>
</FlexGrid>
当我在表格过滤框中随便输入一个值后,然后快速移开,会报错
[backcolor=rgba(206, 17, 38, 0.1)]Cannot read properties of null (reading 'offsetHeight')TypeError: Cannot read properties of null (reading 'offsetHeight') at ValueFilterEditor._adjustWidths (http://localhost:3000/static/js/bundle.js:16402:11) at http://localhost:3000/static/js/bundle.js:16389:9
这是什么原因?
1.如果过滤这列存在的值,是正常的不会报错
2.如果过滤这列不存在的值(就是我乱输入的),停上几秒在移开,也正常
3.就是我乱输入后立马移开,就会报错
|