theKashey / react-focus-lock

It is a trap! A lock for a Focus. 🔓
MIT License
1.27k stars 67 forks source link

Console warning for react 18 users #239

Closed alex-e-leon closed 1 year ago

alex-e-leon commented 1 year ago

Hi @theKashey

When using react-focus-lock with react 18 I get the following error: Warning: AutoFocusInside: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

I've opened a pull request here for the issue. https://github.com/theKashey/react-focus-lock/pull/238

theKashey commented 1 year ago

Fix released as a part of 2.9.3