Html

I’m still in practice mode with Laravel, and today I added TinyMCE to lớn the posts’ textarea.

Bạn đang xem: Html

Adding it was very easy, but I noticed that I can’t submit the post anymore because of this error I found in Chrome’s Console:

An invalid form control with name="body" is not focusable.

*

Luckily, the fix is easy.

What’s Causing This Error?

Basically, this is caused by the required HTML attribute if the tag uses hidden or is somehow hidden via JavaScript code.

At least that’s what I understood from here.

Xem thêm: Siêu Mẫu Hoàng Việt Bán Nhà Gò Vấp, Siêu Mẫu Vũ Hoàng Việt Bán Nhà Gò Vấp

I didn’t use the hidden attribute, so it must have been the JavaScript behind the TinyMCE editor.

The Fix

Anyway, all you have to vày is to lớn remove the required attribute from the tag, and the error should go away.


*

You can showroom server-side validation for that because it’s better anyway. I tend to vì chưng both.

That’s a Wrap

I hope this guide helped you, and you managed to get rid of the “An invalid size control with name=’ ‘ is not focusable.” error.

If you have questions or thoughts, please leave a comment or send me a message using the contact page.

Don’t forget to chia sẻ the post to help out others!


*

About baohiemlienviet.com

I've been working online, from home, for over 8 years. I've learned a lot of stuff, such as SEO, web development, & so on, but my main expertise is WordPress.


*
Rezwan Ahmed says:
*
Rok Sprogar says:

Leave a Reply Cancel reply

Your e-mail address will not be published. Required fields are marked *

Comment *

Name *

Email *


This blog uses cookies for anonymous traffic analytics, basic functionality, và improved security.OkPrivacy policy