Jim
Multiple clicks create duplicate entry
This is basically how the solution is solved on our end from a back end perspective indeed. Some requests are passed through with a uuid that the database wont allow duplicates of, others just use unique where you'd expect. I didnt realise transactions could be enabled panel wide, but we've just wrapped stuff in a transaction where required.
7 replies
Multiple clicks create duplicate entry
I have also managed to replicate this. Throttling chrome using dev tools can make this easier to replicate. When the request is sent, the form submit is disabled but inbetween the form request finishing and a redirect happening the form can be resubmitted.
7 replies
Clearing a searchable select's search value if no results are returned
Fair enough, the use case for this was a scanner where if the input returned no results (i.e an incorrect barcode was scanned) the input should be cleared, for now I've reverted to a textinput/datalist with notifications and some wonky JS injected in to get the input to work how I want.
Thanks for the reply none the less!
4 replies