I am not sure if they only attack in Creative if you switch from survival as they attack, but that's how i found out.
Environment
How to reproduce
1. Do anything to get them angry. (Example: Attack villagers or other things to have low gossip)
2. Go in survival and they will attack
3. Quickly switch to creative and they should still try to attack.
Linked issues
duplicates 1
Attachments
Comments 2
Resolved this as a duplicate of MC-153697 since the issue was made in 03/Jun/19.
I reported the bug wrong I think.