Hello. Im building a form and onSubmit does not work when using slice-machine
I'm building with react and onSubmit does trigger when i add the slice to an actual page. Just a bit anying when one want to debug with only the slice preview.
Hello @nicklas.oest, It sounds like this is more related to the Front end of your project than to your Slices. What is the solution you are trying to find within Prismic?
Well i don't know how the slicemachine preview is supposed to work since I did not build it this is a nextjs project using the latest slichmachine. It works flawlessly once the slice is used on a page as stated earlier.
So here is a minimal example of a slice where the issues exists. The onSubmit binding works just fine when the slice is used on a page. But for development purposes it would be nice if it worked even in the slice preview.
I understand, thanks for the clarification.
For the moment this is not a built-in functionality in Slice Machine.
I'll add a feature request tag to your thread so we can keep it in mind for future changes.
Thanks