hsuanyi-chou / shadcn-ui-expansions

More components built on top of shadcn-ui.
https://shadcnui-expansions.typeart.cc/
MIT License
1.1k stars 51 forks source link

Fixes autosize-textarea.tsx focus error #72

Closed abeisleem closed 7 months ago

abeisleem commented 7 months ago

Fixes auto-focus within a form when field is invalid.

Take a look at https://shadcnui-expansions.typeart.cc/docs/autosize-textarea#Form Remove all the prepopulated text in the text area, open the dev console, hit the submit button. You will get this error: Uncaught (in promise) TypeError: e.focus is not a function

This PR fixes this.

netlify[bot] commented 7 months ago

Deploy Preview for shadcnui-expansions ready!

Name Link
Latest commit fabb55255450918049868e8176a9d3ec3aa96b21
Latest deploy log https://app.netlify.com/sites/shadcnui-expansions/deploys/661bb0ecdb7b1d0008e49d69
Deploy Preview https://deploy-preview-72--shadcnui-expansions.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.