Villagers are capable of closing open iron doors when they pass trough, even with the iron door being powered by a redstone signal.
Linked issues
Comments 4
Please do not duplicate your own reports.
A fix for this issue is available in the current beta and will become available when the fix makes it to the stable release. No eta can be provided.
I mean villagers close iron doors behind, even when the door is powered