Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

Update values are like empty


hello
I have a problem updating from a form.
When submitting, the loaded values ​​are not saved, as if they were empty.
You have to write in each of the inputs for them to be detected.

I am using Laravel with livewire with your example code


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)


Hi,

Sorry for the delay. May I know if you are using the latest Metronic version 8 (v8.2.9)? Recently, we upgraded Livewire, and the issue you’re facing could be related to an older version.

We have tested the latest version using the online demo here:
https://preview.keenthemes.com/starterkit/metronic/laravel/user-management/users

Please check if updating to the latest version resolves the issue. Let me know if the problem persists so we can further assist you.

Thanks!



Hi,

Have you set up the database? Could you please check the console log to see if there are any JavaScript errors? Additionally, please check the network request response to verify if there are any errors from the server.

Thanks



Everything works fine, the data loads perfectly.
When you click edit, the data is loaded into the modal.
The problem is that although the data is visible, it is as if the inputs were empty.
You have to write something in each of them so that they are not detected as empty on submit



I'm seeing that happens in all situations. not just when editing.
In the modal, if a field is not validated correctly, it maintains the value, but when submitting it does not read it, it is necessary to rewrite the input so that it is not detected as empty.
The preloaded values ​​in the modal are visible, but when submitting they are empty, you have to write something in each of the inputs so that they are not detected as empty


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(