laravel-admin icon indicating copy to clipboard operation
laravel-admin copied to clipboard

Data Form: New default value of select box only rendered when loading without cache

Open anxgstadler opened this issue 2 years ago • 0 comments

  • Laravel Version: 8.83.5
  • PHP Version: 8.0
  • Laravel-admin: 1.8.18
  • Firefox: 99.0.1

Description:

I do have some very strange thing going on here:

I'm using a data form, and when I change the default value of a select box, it is only reflected in the UI when I refresh the page without using any caching, pressing Ctrl+F5. Changes to other fields like text areas or checkboxes are being shown immediately, so I'm wondering: What could be different in the initalization of a select box that might not always trigger?

  • No errors show up in the console
  • The problem only occurrs in Firefox, Chrome shows the change correctly on each refresh.
  • In Firefox, when I go to another page and then to the form again, the correct value will be shown.

Any ideas?

anxgstadler avatar Apr 26 '22 09:04 anxgstadler