EasyUI Forum

General Category => EasyUI for React => Topic started by: chrwei on September 19, 2019, 10:08:49 AM



Title: error in "unbind" on a panel
Post by: chrwei on September 19, 2019, 10:08:49 AM
I'm using react router, one path I'm getting an error when leaving going to any other path.  this version 1.0.34, but it was doing ti on 1.0.31 too.

Code:
rc-easyui-min.js:411 Uncaught TypeError: Cannot read property 'mousedown' of undefined
    at e.value (rc-easyui-min.js:411)
    at e.value (rc-easyui-min.js:10262)
    at t.value (rc-easyui-min.js:10172)
    [all the other react-dom lines]

error and point in the code in the attached screen shot, r.myevents is in showing as "undefined".

the component is basically:

Code:
	<Layout>
<LayoutPanel region="west" split style={{ width: "50%" }}>
<LinkButton />
<ProgressBar />
<DataGrid>
<GridColumn />
<GridColumn />
<GridColumn />
</DataGrid>
<Messager ref={ref => rfMsg = ref}></Messager>
</LayoutPanel>
<LayoutPanel region="center" >
<LinkButton />
<iframe />
</LayoutPanel>
</Layout>

I have a nearly identical path that does not get an error, only difference is there's no LinkButtons and on the grid I'm using "onSelectionChange" and "onRowDblClick" on the one that errors, but only "onRowClick" on the one does not error.


Title: Re: error in "unbind" on a panel
Post by: chrwei on October 11, 2019, 01:03:38 PM
1.0.35 seems to have fixed this.