Skip to content

Commit

Permalink
fix: onBlur not always defined in (e.g. in the scope selector)
Browse files Browse the repository at this point in the history
  • Loading branch information
superskip committed Sep 13, 2023
1 parent aac3aef commit 813e5e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const OrgUnitFieldPlain = (props: Props) => {
};

const handleBlur = () => {
onBlur(null);
onBlur && onBlur(null);
};

const styles = maxTreeHeight ? { maxHeight: maxTreeHeight, overflowY: 'auto' } : null;
Expand Down

0 comments on commit 813e5e9

Please sign in to comment.