Skip to content

Commit

Permalink
MoreCast - double click fix (#3387)
Browse files Browse the repository at this point in the history
Fixes double click of weather model cell no longer filling forecast
  • Loading branch information
brettedw authored Feb 7, 2024
1 parent c7eef9c commit 5e6a915
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class GridComponentRenderer {
return <>{params.colDef.headerName}</>
}
public renderCellWith = (params: Pick<GridRenderCellParams, 'formattedValue'>) => (
<TextField disabled={true} size="small" value={params.formattedValue}></TextField>
<TextField sx={{ pointerEvents: 'none' }} disabled={true} size="small" value={params.formattedValue}></TextField>
)

public getActualField = (field: string) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('ColDefBuilder', () => {
)

expect(forecastColDef.renderCell({ formattedValue: 1 })).toEqual(
<TextField disabled={true} size="small" value={1}></TextField>
<TextField sx={{ pointerEvents: 'none' }} disabled={true} size="small" value={1}></TextField>
)
expect(forecastColDef.valueFormatter({ value: 1.11 })).toEqual('1.1')
})
Expand Down

0 comments on commit 5e6a915

Please sign in to comment.