Chosen Solution

I have repaired many iPhones and several iPhone 8+ but have never came across this situation before. I connected the home button as normal, and tested the phone out, everything work except the home button. long story short I pulled the home button out of the screen and connected it to the cable as it would be in the phone, just out of the screen, hanging out the side of the phone. turned the phone on and the home button works as it should. I unhooked it and put it back as it is supposed to be in the screen and again it will not work. It only woks if I take it out of the screen and connect it letting it hang outside of the phone. I also tested an after market home button and the same thing happens, it will not work when installed in the screen but it will while hanging out of the screen to the side. Any ideas on what could be happening here?

Not sure what really happened here but I was getting ready to order a new screen and home button for the phone, The customer was needing their phone back so I Turned on the on screen home button and showed them how to use it. I put the phone back together with the original home button and everything worked just fine.