I was playing in my world that earring and put a fireball within the targeted ejector in the door to when someone go is been reached and when I tested threw a pink ball of fire and rock and when it hit me was with that again as effect the ender dragon shoots a fireball in person
Thank you for your report.
However, your ticket has been resolved as a duplicate.
This issue has been linked to the original bugreport: MC-84593. You can find or add further information on that report.
Please search before reporting any bugs, as it's likely that one exists already.