Closed (fixed)
Project:
simplytest.me
Version:
8.x-4.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
20 Sep 2021 at 17:01 UTC
Updated:
5 Oct 2021 at 14:44 UTC
Jump to comment: Most recent
When trying to add aditional project I get errors:
I tried with select2boxes module and entity_autocomplete_hierarchy module. I also tried with some other combinations, but I get the same errors all the time.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mglamanThanks for the issue report! I was able to reproduce. For some reason when the additional project is selected the state isn't update.
I checked the React context and the value wasn't bubbled up
So we also need to do some error handling and validation before submitting the form.
Comment #3
mglamanNote: Can we give credit to TR for additional in depth bug report
Comment #4
mglamanUpdating title to reflect bigger bug. You cannot change the branch value or even clear the autocomplete value.
Comment #5
mglamanI found the problem. I am not sure why this started happening, but it was due to an infinite loop on a side effect and re-render. I was passing an anonymous function a React side effect inside of the AdditionalProjects component for the ProjectSelector. This caused the app to basically crash. This MR should fix it up.
Comment #7
mglamanMR opened. Adds fixes and state management improvements.
Comment #8
nerdsteinThis has been merged, thanks!