alpinejs-devtools icon indicating copy to clipboard operation
alpinejs-devtools copied to clipboard

alpine devtools fails when x-data is on a <form> element

Open JeremyJaydan opened this issue 4 years ago • 2 comments

I encountered the following error, I think it's from x-data being on a <form> element: Uncaught DOMException: Failed to execute 'postMessage' on 'Window': HTMLInputElement object could not be cloned. image image

When I moved my x-data from the form to a parent element the error went away & everything seems to work.

I assume if this is the case, it could be some sort of privacy reason with html forms. I'm ok with my workaround either way, feel free to close.

JeremyJaydan avatar Aug 30 '21 00:08 JeremyJaydan

I'll have a look, thanks for reporting this issue.

HugoDF avatar Sep 03 '21 17:09 HugoDF

I have encounterd this same error recently, it seems to be as above when the x-data is on the form tag AND you have an input field with the name="id".

If you change the name="id" to anything other than id then the issue goes away....?

mattgrul avatar Jun 21 '23 09:06 mattgrul