Trick-or-treating came to a halt during World War II.
A lot of things changed during World War II, including the fact children didn’t go trick-or-treating during the conflict.
Because sugar was being rationed during the war, there wasn’t any extra candy available for costumed children to collect. The tradition was paused until peacetimes returned.