Skip to content

Commit

Permalink
fix: null check on input
Browse files Browse the repository at this point in the history
  • Loading branch information
pksorensen committed Mar 6, 2024
1 parent 0900355 commit cf30a2a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export const BaseInputComponent = ({ questionModel, className, style, type }: {

const resize = () => {
const input = ref.current;
if (!input)
return;

const oldvalue = input.value;

if (!oldvalue || oldvalue === '')
Expand Down

0 comments on commit cf30a2a

Please sign in to comment.