Open Przemoo16 opened 11 months ago
Thank you for creating this issue. I will try to fix that tomorrow.
I'm currently having a problem with my package manager and can't investigate it. I will try again next week. Is the problem still there? It should not be related to upgrading to Qwik v1.3.0. Also required
is not related to it. So I don't think it's the reason if there is a bug.
I'm currently having a problem with my package manager and can't investigate it. I will try again next week. Is the problem still there? It should not be related to upgrading to Qwik v1.3.0. Also
required
is not related to it. So I don't think it's the reason if there is a bug.
Yes, the issue continues to occur to me. I'm not sure what is the exact cause, but after removing validate
property it works.
Ok, I will look into this in the next few weeks. For now, I recommend downgrading to an older version of Qwik.
I'm currently having a problem with my package manager and can't investigate it. I will try again next week. Is the problem still there? It should not be related to upgrading to Qwik v1.3.0. Also
required
is not related to it. So I don't think it's the reason if there is a bug.
You mentioned you have a problem with package manager. If this is about the sharp
package, here is the discussion about it: https://github.com/BuilderIO/qwik/issues/5556.
That's exactly the problem. Thanks a lot for the hint!
Hi, were you able to reproduce this issue?
It works fine in my playground. When I copy your code, Qwik also fails to update the text node on my computer. Not sure what the problem is here, but it is not related to Modular Forms. You can add the following line to prove that the value is there:
<div>{JSON.stringify(form.response)}</div>
But I expect this to be fixed with the Modular Forms rewrite planned for the next few months, as I plan to change the way these values are stored.
Ok, thanks for confirming the issue ;)
it works fine
loginForm.response.message?.toString()
or
{loginForm.response.message && <div>{loginForm.response.message}</div>}
Hint: If you encounter this problem, it may help to access .response
via the ?
operator. Here is an example:
<div>{form.response?.message}</div>
Again, thank you so much for a great job by creating this library!!!
After upgrading Qwik to the latest 1.3.0 version, using
setResponse
or throwingFormError
doesn't display the response message if the validation is defined. After removing thevalidate
property it works as expected.Could be related to this issue: https://github.com/fabian-hiller/modular-forms/issues/158
Code to reproduce (Remove the
validate={[required('Field is required.')]}
to make it works):Dependencies: