Skip to content
Snippets Groups Projects
Unverified Commit b63309fd authored by Jed Fox's avatar Jed Fox Committed by GitHub
Browse files

Stop editing when clicking on blank areas of tables (#660)

parent b823ebc6
No related branches found
No related tags found
No related merge requests found
...@@ -1270,7 +1270,8 @@ export function useTableNavigator(data, fields, opts = {}) { ...@@ -1270,7 +1270,8 @@ export function useTableNavigator(data, fields, opts = {}) {
if ( if (
document.hasFocus() && document.hasFocus() &&
(e.relatedTarget == null || (e.relatedTarget == null ||
!containerRef.current.contains(e.relatedTarget)) && !containerRef.current.contains(e.relatedTarget) ||
containerRef.current === e.relatedTarget) &&
prevNumModals === numModals prevNumModals === numModals
) { ) {
onEdit(null); onEdit(null);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment