Recently in the past couple of days, my cd tray has stayed open on my computer. When I click the button on the cd drive the tray goes in but within 3-4 seconds it pops back out and stays out.

Up until several days ago, the drive was working fine without any problems.

Is there any way that I can fix this? If so How?
What could have caused this?

Thanks to all that reply.