Skip to content

Commit

Permalink
Fixed editor manager valueEqual operator
Browse files Browse the repository at this point in the history
  • Loading branch information
underfisk committed Oct 26, 2020
1 parent 913bd6a commit 1c5d776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editorManager/useEditorManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function useEditorManager({ onCellChange, apiRef }: EditorManagerProps) {
return setEditorNode(null)
}

if (valueEqual(newValue, editorState.initialValue)) {
if (!valueEqual(newValue, editorState.initialValue)) {
const row = apiRef.current.getRowAt(editorState.rowIndex)
const column = apiRef.current.getColumnAt(editorState.colIndex)
if (!row) {
Expand Down

0 comments on commit 1c5d776

Please sign in to comment.