Skip to content

Commit

Permalink
Do not pass null reference as inputRef prop
Browse files Browse the repository at this point in the history
  • Loading branch information
arminmeh committed Jan 29, 2025
1 parent 4f68960 commit 1e2a914
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ const GridHeaderFilterCell = forwardRef<HTMLDivElement, GridHeaderFilterCellProp
className={classes.input}
apiRef={apiRef}
item={item}
inputRef={inputRef}
inputRef={inputRef.current ? inputRef : undefined}
applyValue={apiRef.current.upsertFilterItem}
onFocus={() => apiRef.current.startHeaderFilterEditMode(colDef.field)}
onBlur={(event: React.FocusEvent) => {
Expand Down

0 comments on commit 1e2a914

Please sign in to comment.