emilkowalski / vaul

A drawer component for React.
https://vaul.emilkowal.ski
MIT License
6.45k stars 215 forks source link

fix: typescript strict on to prevent null calls #477

Closed maiconcarraro closed 1 month ago

maiconcarraro commented 1 month ago

fixes https://github.com/emilkowalski/vaul/issues/476

the root cause was about a missing check caused by event possibly null, suggesting to keep strict: true in tsconfig to help prevent these bugs, included the fixes to keep it on.

image